2 using System
.Runtime
.InteropServices
;
6 public int X { get; set; }
9 [StructLayout (LayoutKind
.Sequential
, Pack
= 1)]
10 public struct MyStruct2
13 public uint type_reference
;
18 public static int Main ()
20 var s
= typeof (MyStruct
);
22 if (s
.StructLayoutAttribute
.Size
!= 0)
25 var s2
= typeof (MyStruct2
);
27 if (s2
.StructLayoutAttribute
.Size
!= 0)
30 if (s2
.StructLayoutAttribute
.Pack
!= 1)