Skip to content

Commit 5b1a7f7

Browse files
Sergio0694Copilot
andcommitted
Strip WindowsRuntimeClassName attribute from reference assembly
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 53882f0 commit 5b1a7f7

9 files changed

Lines changed: 1 addition & 17 deletions

File tree

src/WinRT.Runtime2/InteropServices/Events/EventRegistrationToken.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ namespace WindowsRuntime.InteropServices;
1313
/// <see href="https://learn.microsoft.com/uwp/api/windows.foundation.eventregistrationtoken"/>
1414
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
1515
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
16-
#endif
1716
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.EventRegistrationToken>")]
18-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
1917
[WindowsRuntimeReferenceType(typeof(EventRegistrationToken?))]
2018
[ABI.WindowsRuntime.InteropServices.EventRegistrationTokenComWrappersMarshaller]
2119
#endif

src/WinRT.Runtime2/Windows.Foundation/AsyncActionCompletedHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace Windows.Foundation;
1515
/// <param name="asyncStatus">One of the enumeration values.</param>
1616
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
1717
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
18-
#endif
1918
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.AsyncActionCompletedHandler>")]
19+
#endif
2020
#if WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
2121
[ContractVersion(typeof(FoundationContract), 65536u)]
2222
#elif WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY

src/WinRT.Runtime2/Windows.Foundation/AsyncStatus.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ namespace Windows.Foundation;
1515
/// <see href="https://learn.microsoft.com/windows/win32/api/asyncinfo/ne-asyncinfo-asyncstatus"/>
1616
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
1717
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
18-
#endif
1918
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.AsyncStatus>")]
20-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2119
[WindowsRuntimeReferenceType(typeof(AsyncStatus?))]
2220
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
2321
[SupportedOSPlatform("Windows10.0.10240.0")]

src/WinRT.Runtime2/Windows.Foundation/Collections/CollectionChange.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ namespace Windows.Foundation.Collections;
2121
/// <see href="https://learn.microsoft.com/uwp/api/windows.foundation.collections.collectionchange"/>
2222
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2323
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
24-
#endif
2524
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.Collections.CollectionChange>")]
26-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2725
[WindowsRuntimeMetadataTypeName("Windows.Foundation.Collections.CollectionChange")]
2826
[WindowsRuntimeReferenceType(typeof(CollectionChange?))]
2927
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY

src/WinRT.Runtime2/Windows.Foundation/Point.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ namespace Windows.Foundation;
2121
/// <see href="https://learn.microsoft.com/uwp/api/windows.foundation.point"/>
2222
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2323
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
24-
#endif
2524
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.Point>")]
26-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2725
[WindowsRuntimeReferenceType(typeof(Point?))]
2826
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
2927
[SupportedOSPlatform("Windows10.0.10240.0")]

src/WinRT.Runtime2/Windows.Foundation/PropertyType.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ namespace Windows.Foundation;
1515
/// <see href="https://learn.microsoft.com/uwp/api/windows.foundation.propertytype"/>
1616
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
1717
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
18-
#endif
1918
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.PropertyType>")]
20-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2119
[WindowsRuntimeReferenceType(typeof(PropertyType?))]
2220
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
2321
[SupportedOSPlatform("Windows10.0.10240.0")]

src/WinRT.Runtime2/Windows.Foundation/Rect.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ namespace Windows.Foundation;
2323
/// <see href="https://learn.microsoft.com/uwp/api/windows.foundation.rect"/>
2424
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2525
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
26-
#endif
2726
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.Rect>")]
28-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2927
[WindowsRuntimeReferenceType(typeof(Rect?))]
3028
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
3129
[SupportedOSPlatform("Windows10.0.10240.0")]

src/WinRT.Runtime2/Windows.Foundation/Size.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ namespace Windows.Foundation;
2020
/// <see href="https://learn.microsoft.com/uwp/api/windows.foundation.size"/>
2121
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2222
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
23-
#endif
2423
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Foundation.Size>")]
25-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2624
[WindowsRuntimeReferenceType(typeof(Size?))]
2725
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
2826
[SupportedOSPlatform("Windows10.0.10240.0")]

src/WinRT.Runtime2/Windows.Storage.Streams/InputStreamOptions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ namespace Windows.Storage.Streams;
1818
[Flags]
1919
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2020
[WindowsRuntimeMetadata("Windows.Foundation.UniversalApiContract")]
21-
#endif
2221
[WindowsRuntimeClassName("Windows.Foundation.IReference`1<Windows.Storage.Streams.InputStreamOptions>")]
23-
#if WINDOWS_RUNTIME_IMPLEMENTATION_ASSEMBLY
2422
[WindowsRuntimeReferenceType(typeof(InputStreamOptions?))]
2523
#elif WINDOWS_RUNTIME_REFERENCE_ASSEMBLY
2624
[SupportedOSPlatform("Windows10.0.10240.0")]

0 commit comments

Comments
 (0)