Fix 2.0 attributeusage
authorMarek Safar <marek.safar@gmail.com>
Wed, 1 Aug 2012 21:18:45 +0000 (22:18 +0100)
committerMarek Safar <marek.safar@gmail.com>
Wed, 1 Aug 2012 21:19:47 +0000 (22:19 +0100)
mcs/class/corlib/System.Security/SecurityCriticalAttribute.cs

index b418d150fb7f2eef11e7399b9510a5486c908647..a95be0dad319139fbf454d61a37f3c7b0dba8e2d 100644 (file)
@@ -43,10 +43,17 @@ namespace System.Security {
 
 #else
        [MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
+#if NET_4_0
        [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct |
                AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method |
                AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate,
                AllowMultiple=false, Inherited=false)]
+#else
+       [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct |
+               AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event |
+               AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate,
+               AllowMultiple=false, Inherited=false)]
+#endif
        public sealed class SecurityCriticalAttribute : Attribute {
 
                private SecurityCriticalScope _scope;