[Test] Cleaned up how a bunch of tests were ignored
[mono.git] / mcs / class / corlib / System.Security / SecuritySafeCriticalAttribute.cs
index b0d6471a604a4cd7c27759a8856f187b9a4e343b..06d0807c7fa5cf93f4fd0a86bd8cfcc0288b6b6e 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 namespace System.Security {
 
-#if !NET_2_1
        [MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
-#endif
-       [AttributeUsage (AttributeTargets.All, AllowMultiple=false, Inherited=false)]
+       [AttributeUsage (AttributeTargets.Delegate | AttributeTargets.Interface | AttributeTargets.Field | AttributeTargets.Method |
+                       AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Struct | AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
        public sealed class SecuritySafeCriticalAttribute : Attribute {
 
                public SecuritySafeCriticalAttribute ()
@@ -42,4 +39,3 @@ namespace System.Security {
        }
 }
 
-#endif