Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename...
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / DllImportAttribute.cs
index ce0b58744b33636c04c7f8cfde5deabe424aca84..39ac038dd889123753a53aa1449a015bfb41d9d4 100644 (file)
@@ -35,7 +35,9 @@ using System;
 
 namespace System.Runtime.InteropServices {
 
+       [ComVisible(true)]
        [AttributeUsage (AttributeTargets.Method, Inherited=false)]
+       [StructLayout (LayoutKind.Sequential)]
        public sealed class DllImportAttribute: Attribute {
                #region Sync with reflection.h
                public CallingConvention CallingConvention;
@@ -46,13 +48,8 @@ namespace System.Runtime.InteropServices {
                public bool PreserveSig;
                public bool SetLastError;
 
-#if NET_1_1
                public bool BestFitMapping;
                public bool ThrowOnUnmappableChar;
-#else
-               private bool BestFitMapping;
-               private bool ThrowOnUnmappableChar;
-#endif
                #endregion
 
                public string Value {
@@ -62,5 +59,7 @@ namespace System.Runtime.InteropServices {
                public DllImportAttribute (string dllName) {
                        Dll = dllName;
                }
+
+               
        }
 }