2010年3月13日

c# struct 变量 到 byte[] 变量的转换操作

摘要: using System.Runtime.InteropServices;#region 需要转换的结构 [StructLayout(LayoutKind.Sequential, Pack=1)]//struTest变量在内存中的对齐方式 (指针类型转换成功的必要条件)public struct struTest{ public int intId; public int intName; pub... 阅读全文

posted @ 2010-03-13 16:57 chuncn 阅读(3318) 评论(0) 推荐(0) 编辑

导航