[StructLayout(LayoutKind.Sequential, Pack = 1)] class THolidayTz { public ushort ID; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = 0)] public byte[][] HDate = new byte[4][]; // Error using Marshal.SizeOf public ushort TZID; };
byte[] buf = new byte[Marshal.SizeOf(Holiday)];
public byte[]HDate = new byte[4];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)