File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 44
55namespace System . Runtime . Versioning
66{
7- #if ! NET5_0 || NET5_0_WINDOWS
7+ #if ! ( NET6_0 || NET6_0_ANDROID || NET6_0_IOS || NET6_0_MACCATALYST || NET6_0_MACOS10_14 || NET6_0_WINDOWS || NET7_0 || NET7_0_ANDROID || NET7_0_IOS || NET7_0_MACCATALYST || NET7_0_MACOS10_14 || NET7_0_WINDOWS )
88 abstract class OSPlatformAttribute : Attribute
99 {
1010 private protected OSPlatformAttribute ( string platformName )
1111 {
1212 PlatformName = platformName ;
1313 }
14+
1415 public string PlatformName { get ; }
1516 }
16- #endif
17-
18- #if ! ( NET6_0 || NET6_0_ANDROID || NET6_0_IOS || NET6_0_MACCATALYST || NET6_0_MACOS10_14 || NET6_0_WINDOWS || NET7_0 || NET7_0_ANDROID || NET7_0_IOS || NET7_0_MACCATALYST || NET7_0_MACOS10_14 || NET7_0_WINDOWS )
1917
2018 /// <summary>
2119 /// Annotates a custom guard field, property or method with a supported platform name and optional version.
You can’t perform that action at this time.
0 commit comments