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
old mode 100755 (executable)
new mode 100644 (file)
index 1f6a9b4..39ac038
@@ -35,24 +35,23 @@ 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;
                public CharSet CharSet;
+               private string Dll;
                public string EntryPoint;
                public bool ExactSpelling;
                public bool PreserveSig;
                public bool SetLastError;
 
-#if (NET_1_1)
-
                public bool BestFitMapping;
                public bool ThrowOnUnmappableChar;
+               #endregion
 
-#endif
-
-               private string Dll;
-               
                public string Value {
                        get {return Dll;}
                }
@@ -60,5 +59,7 @@ namespace System.Runtime.InteropServices {
                public DllImportAttribute (string dllName) {
                        Dll = dllName;
                }
+
+               
        }
 }