使用Marshal.Copy把Txt行数据转为Struct类型值

添加重要的命名空间:using System.Runtime.InteropServices;先建立结构相同(char长度相同)的Struct类型用于转换:[StructLayout(LayoutKind.Sequential, Pack = 1)] public struct Employe...
posted @ 2014-05-22 10:09  xachary  阅读(257)  评论(0编辑  收藏  举报