Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename...
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / VARDESC.cs
index bcb8fd416bab0fe9b7c45dc6a297174adafbf04b..1ab572ecfc8325fecf46ef2200754fa5d16904bc 100644 (file)
 
 namespace System.Runtime.InteropServices
 {
-       [ComVisible (false)]
+       [Obsolete]
+       [StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
        public struct VARDESC
        {
-               public ELEMDESC elemdescVar;
-               public string lpstrSchema;
                public int memid;
-               public VarEnum varkind;
+               public string lpstrSchema;
+               public ELEMDESC elemdescVar;
                public short wVarFlags;
+               public VarEnum varkind;
 
                [ComVisible (false)]
+               [StructLayout (LayoutKind.Explicit, CharSet = CharSet.Unicode)]
                public struct DESCUNION
                {
+                       [FieldOffset (0)]
                        public IntPtr lpvarValue;
+                       [FieldOffset (0)]
                        public int oInst;
                }
        }