diff --git a/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml b/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml index 1e1071c450ca6b..f10548a4a70dc4 100644 --- a/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml +++ b/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml @@ -219,7 +219,7 @@ - + diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs index ef235aae22261e..06359cf91171b6 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs @@ -132,12 +132,12 @@ public UnsupportedOSPlatformAttribute(string platformName, string? message) : ba #else internal #endif - sealed class ObsoletedInOSPlatformAttribute : OSPlatformAttribute + sealed class ObsoletedOSPlatformAttribute : OSPlatformAttribute { - public ObsoletedInOSPlatformAttribute(string platformName) : base(platformName) + public ObsoletedOSPlatformAttribute(string platformName) : base(platformName) { } - public ObsoletedInOSPlatformAttribute(string platformName, string? message) : base(platformName) + public ObsoletedOSPlatformAttribute(string platformName, string? message) : base(platformName) { Message = message; } diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index d62e3cbb60e941..37b23579408a79 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -13366,10 +13366,10 @@ public FrameworkName(string identifier, System.Version version, string? profile) public override string ToString() { throw null; } } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] - public sealed partial class ObsoletedInOSPlatformAttribute : System.Runtime.Versioning.OSPlatformAttribute + public sealed partial class ObsoletedOSPlatformAttribute : System.Runtime.Versioning.OSPlatformAttribute { - public ObsoletedInOSPlatformAttribute(string platformName) : base(platformName) { } - public ObsoletedInOSPlatformAttribute(string platformName, string? message) : base(platformName) { } + public ObsoletedOSPlatformAttribute(string platformName) : base(platformName) { } + public ObsoletedOSPlatformAttribute(string platformName, string? message) : base(platformName) { } public string? Message { get { throw null; } } public string? Url { get { throw null; } set {} } } diff --git a/src/libraries/System.Runtime/tests/System/Runtime/Versioning/OSPlatformAttributeTests.cs b/src/libraries/System.Runtime/tests/System/Runtime/Versioning/OSPlatformAttributeTests.cs index 619bdc7c8f1134..8e682ec9e640c8 100644 --- a/src/libraries/System.Runtime/tests/System/Runtime/Versioning/OSPlatformAttributeTests.cs +++ b/src/libraries/System.Runtime/tests/System/Runtime/Versioning/OSPlatformAttributeTests.cs @@ -58,9 +58,9 @@ public void TestSupportedOSPlatformAttribute(string platformName) [InlineData("Windows8.0")] [InlineData("Android4.1")] [InlineData("")] - public void TestObsoletedInOSPlatformAttribute(string platformName) + public void TestObsoletedOSPlatformAttribute(string platformName) { - var tpa = new ObsoletedInOSPlatformAttribute(platformName); + var tpa = new ObsoletedOSPlatformAttribute(platformName); Assert.Equal(platformName, tpa.PlatformName); } @@ -69,9 +69,9 @@ public void TestObsoletedInOSPlatformAttribute(string platformName) [InlineData("Windows8.0", "Message in a bottle")] [InlineData("Android4.1", "Message on a pigeon")] [InlineData("", null)] - public void TestObsoletedInOSPlatformAttributeWithMessage(string platformName, string? message) + public void TestObsoletedOSPlatformAttributeWithMessage(string platformName, string? message) { - var tpa = new ObsoletedInOSPlatformAttribute(platformName, message); + var tpa = new ObsoletedOSPlatformAttribute(platformName, message); Assert.Equal(platformName, tpa.PlatformName); Assert.Equal(message, tpa.Message);