[System] Process.WaitForExit now triggers event Exited.
[mono.git] / mcs / class / corlib / System.Security / SecurityCriticalAttribute.cs
index 61494169a496ebf29cbbb94b1e7201354b1762ab..ed01b54abde7f1cd0b27207343e575d66c4f7a0d 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005, 2009 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 namespace System.Security {
 
+#if NET_2_1
+
        [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct |
                AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property |
                AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate,
                AllowMultiple=false, Inherited=false)]
-       [MonoTODO ("Not supported by the runtime")]
+       public sealed class SecurityCriticalAttribute : Attribute {
+
+               public SecurityCriticalAttribute ()
+               {
+               }
+       }
+
+#else
+       [MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
+       [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct |
+               AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method |
+               AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate,
+               AllowMultiple=false, Inherited=false)]
        public sealed class SecurityCriticalAttribute : Attribute {
 
                private SecurityCriticalScope _scope;
@@ -59,10 +71,10 @@ namespace System.Security {
                        }
                }
 
+               [Obsolete]
                public SecurityCriticalScope Scope {
                        get { return _scope; }
                }
        }
-}
-
 #endif
+}