Obsolete message should contain property name. (#50693)
authorAaron Robinson <arobins@microsoft.com>
Sun, 4 Apr 2021 04:11:00 +0000 (21:11 -0700)
committerGitHub <noreply@github.com>
Sun, 4 Apr 2021 04:11:00 +0000 (04:11 +0000)
src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs
src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/RuntimeEnvironment.cs

index 2771e35..87757e9 100644 (file)
@@ -793,7 +793,7 @@ namespace System.Runtime.InteropServices
     }
     public static partial class RuntimeEnvironment
     {
-        [System.ObsoleteAttribute("This property is no longer supported.")]
+        [System.ObsoleteAttribute("SystemConfigurationFile is no longer supported.")]
         public static string SystemConfigurationFile { get { throw null; } }
         public static bool FromGlobalAccessCache(System.Reflection.Assembly a) { throw null; }
         public static string GetRuntimeDirectory() { throw null; }
index 98e2a12..9708a0b 100644 (file)
@@ -8,7 +8,7 @@ namespace System.Runtime.InteropServices
 {
     public static class RuntimeEnvironment
     {
-        [Obsolete("This property is no longer supported.")]
+        [Obsolete("SystemConfigurationFile is no longer supported.")]
         public static string SystemConfigurationFile => throw new PlatformNotSupportedException();
 
         public static bool FromGlobalAccessCache(Assembly a) => false;