Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Src/IronPython/SystemRuntimeVersioning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the Apache 2.0 license.
// See the LICENSE file in the project root for more information.

#nullable enable

namespace System.Runtime.Versioning {
#if !FEATURE_OSPLATFORMATTRIBUTE
internal abstract class OSPlatformAttribute : Attribute {
Expand All @@ -26,5 +28,27 @@ internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute {
public SupportedOSPlatformAttribute(string platformName) : base(platformName) {
}
}

[AttributeUsage(AttributeTargets.Assembly |
AttributeTargets.Class |
AttributeTargets.Constructor |
AttributeTargets.Enum |
AttributeTargets.Event |
AttributeTargets.Field |
AttributeTargets.Method |
AttributeTargets.Module |
AttributeTargets.Property |
AttributeTargets.Struct,
AllowMultiple = true, Inherited = false)]
internal sealed class UnsupportedOSPlatformAttribute : OSPlatformAttribute {
public UnsupportedOSPlatformAttribute(string platformName) : base(platformName) {
}

public UnsupportedOSPlatformAttribute (string platformName, string? message) : base(platformName) {
Message = message;
}

public string? Message { get; }
}
#endif
}
Loading