dotnet-core/release-notes/5.0/api-diff/netstandard2.1/5.0_System.Runtime.Versioning.md

20 lines
648 B
Markdown
Raw Normal View History

# System.Runtime.Versioning
``` diff
namespace System.Runtime.Versioning {
+ public abstract class OSPlatformAttribute : Attribute {
+ public string PlatformName { get; }
+ }
+ public sealed class SupportedOSPlatformAttribute : OSPlatformAttribute {
+ public SupportedOSPlatformAttribute(string platformName);
+ }
+ public sealed class TargetPlatformAttribute : OSPlatformAttribute {
+ public TargetPlatformAttribute(string platformName);
+ }
+ public sealed class UnsupportedOSPlatformAttribute : OSPlatformAttribute {
+ public UnsupportedOSPlatformAttribute(string platformName);
+ }
}
```