2 using System
.Runtime
.InteropServices
;
4 [StructLayout (LayoutKind
.Explicit
)]
9 [MarshalAs(UnmanagedType
.ByValArray
, SizeConst
=1024)]
10 internal byte[] stuff
;
13 int size
= Marshal
.SizeOf(typeof(TestStructure
));
14 Console
.WriteLine("Size of t: {0}", size
);
18 size
= Marshal
.SizeOf(typeof(TestStructure2
));
19 Console
.WriteLine("Size of t2: {0}", size
);
27 [StructLayout (LayoutKind
.Explicit
)]
28 struct TestStructure2
{