2 using System
.Runtime
.InteropServices
;
5 [StructLayout(LayoutKind
.Explicit
, Size
=32)]
7 [MarshalAs(UnmanagedType
.ByValTStr
, SizeConst
=16)]
13 public static int Main () {
14 Dummy dummy
= new Dummy ();
17 IntPtr p
= Marshal
.AllocHGlobal(Marshal
.SizeOf(typeof(Dummy
)));
18 Marshal
.StructureToPtr(dummy
, p
, false);
20 if(Marshal
.ReadByte(p
, 0) != 0x61) {
23 if(Marshal
.ReadByte(p
, 1) != 0x62) {
26 if(Marshal
.ReadByte(p
, 2) != 0x63) {
29 if(Marshal
.ReadByte(p
, 3) != 0x64) {