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 c9b174842563417c43bba14b9fa0eab25eb6767c..39ac038dd889123753a53aa1449a015bfb41d9d4 100644 (file)
@@ -37,6 +37,7 @@ 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;
@@ -47,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 {