2 using System
.Runtime
.InteropServices
;
4 [StructLayout ( LayoutKind
.Sequential
, Pack
=2 )]
10 [StructLayout ( LayoutKind
.Sequential
, Pack
=2 )]
25 ms
= sizeof (MYStruct
);
26 ms2
= sizeof (MYStruct2
);
27 ms3
= sizeof (MYStruct3
);
29 Console
.WriteLine ("MYStruct size: {0}", ms
);
30 Console
.WriteLine ("MYStruct2 size: {0}", ms2
);
31 Console
.WriteLine ("MYStruct3 size: {0}", ms3
);