日期:2014-05-18 浏览次数:20800 次
[StructLayout(LayoutKind.Sequential)] class a { public int temp; } a a1= new a(); int size = Marshal.Sizeof(a1) ------解决方案--------------------int size = Marshal.Sizeof(int)