Add AttributeTargets.Interface to SkipLocalsInitAttribute (#35485)
authorYair Halberstadt <yairhalberstadt@gmail.com>
Mon, 27 Apr 2020 00:11:21 +0000 (03:11 +0300)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 00:11:21 +0000 (20:11 -0400)
* Add AttributeTargets.Interface to SkipLocalsInitAttribute

* Add AttributeTargets.Interface to ref SkipLocalsInit

src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/SkipLocalsInitAttribute.cs
src/libraries/System.Runtime/ref/System.Runtime.cs

index fef7f11..349c12a 100644 (file)
@@ -21,6 +21,7 @@ namespace System.Runtime.CompilerServices
     [AttributeUsage(AttributeTargets.Module
         | AttributeTargets.Class
         | AttributeTargets.Struct
+        | AttributeTargets.Interface
         | AttributeTargets.Constructor
         | AttributeTargets.Method
         | AttributeTargets.Property
@@ -31,4 +32,4 @@ namespace System.Runtime.CompilerServices
         {
         }
     }
-}
\ No newline at end of file
+}
index fa69202..b73e242 100644 (file)
@@ -9073,7 +9073,7 @@ namespace System.Runtime.CompilerServices
         public object WrappedException { get { throw null; } }
         public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
     }
-    [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)]
+    [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct | System.AttributeTargets.Interface, Inherited=false)]
     public sealed partial class SkipLocalsInitAttribute : System.Attribute
     {
         public SkipLocalsInitAttribute() { }