Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed Jan 28, 2022
1 parent fa28a6c commit a163efe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Runtime/Versioning/PlatformAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@

namespace System.Runtime.Versioning
{
#if !NET5_0 || NET5_0_WINDOWS
#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)
abstract class OSPlatformAttribute : Attribute
{
private protected OSPlatformAttribute(string platformName)
{
PlatformName = platformName;
}

public string PlatformName { get; }
}
#endif

#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)

/// <summary>
/// Annotates a custom guard field, property or method with a supported platform name and optional version.
Expand Down

0 comments on commit a163efe

Please sign in to comment.