2005-05-16 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Security / SuppressUnmanagedCodeSecurityAttribute.cs
index 00c4c22d3164a9ff8fceff84e9f57195bcf21de0..8de56a41811ed5ee1c71939c16de635833b00948 100644 (file)
@@ -5,7 +5,7 @@
 //   Nick Drochak(ndrochak@gol.com)
 //
 // (C) Nick Drochak
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 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.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Security {
 
+#if NET_2_0
+       [AttributeUsage (AttributeTargets.Class | AttributeTargets.Method | 
+               AttributeTargets.Interface | AttributeTargets.Delegate, 
+               AllowMultiple=true, Inherited=false)]
+       [ComVisible (true)]
+#else
        [AttributeUsage (AttributeTargets.Class | AttributeTargets.Method |
                         AttributeTargets.Interface, AllowMultiple=true, Inherited=false)]
+#endif
        public sealed class SuppressUnmanagedCodeSecurityAttribute : Attribute {
        }
 }