2006-08-31 Robert Jordan <robertj@gmx.net>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / UnmanagedFunctionPointerAttribute.cs
index 7db71a065800dc9bd95d6ef3adef459a849599e3..83f59dcd178a883d0e85a7594b3c29fc7132fd6b 100644 (file)
@@ -32,13 +32,15 @@ using System;
 
 namespace System.Runtime.InteropServices {
 
-       [AttributeUsage (AttributeTargets.Delegate)]
+       [AttributeUsage (AttributeTargets.Delegate, Inherited = false,AllowMultiple=false),ComVisible(true)]
        public sealed class UnmanagedFunctionPointerAttribute: Attribute {
+               #region Sync with object-internals.h
                private CallingConvention call_conv;
                public CharSet CharSet;
                public bool SetLastError;
                public bool BestFitMapping;
                public bool ThrowOnUnmappableChar;
+               #endregion
 
                public CallingConvention CallingConvention {
                        get {
@@ -46,8 +48,8 @@ namespace System.Runtime.InteropServices {
                        }
                }
                
-               public UnmanagedFunctionPointerAttribute (CallingConvention call_conv) {
-                       this.call_conv = call_conv;
+               public UnmanagedFunctionPointerAttribute (CallingConvention callingConvention) {
+                       this.call_conv = callingConvention;
                }
        }
 }