Click here to Skip to main content
15,877,051 members

Comments by Geca (Top 2 by date)

Geca 14-Nov-11 3:55am View    
Hi. I Have the same error...

[StructLayout(LayoutKind.Sequential, Pack = 1)]
class THolidayTz
public ushort ID;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = 0)]
public byte[][] HDate;
public ushort TZID;


THolidayTz Holiday = new THolidayTz();
byte[] buf = new byte[Marshal.SizeOf(Holiday)]; // Error on Marshal.SizeOf
Geca 11-Nov-11 3:27am View    
Can you show me the example for this case ?