摘要: 序列化的方法很多,建议用ProtoBuf,百度下protobuf-net.dll下载这个组件,把它引进到我们的项目中。怎么使用它呢?第一步,在需要序列化的类里面增加ProtoBuf格式,例如:[ProtoContract] public class WcfResult { [ProtoMember(1,IsRequired = true)] public int Unid{ get; set; } [ProtoMember(2)] public string Msg { get; set; } [ProtoMem... 阅读全文
posted @ 2012-06-14 16:18 魂斗罗II 阅读(357) 评论(0) 推荐(0) 编辑