摘要: public static class DataContractHelper { public static void ToDCFile(this T obj, string path) { //路径 FileStream fs = new FileStream(path, FileMode.C... 阅读全文
posted @ 2019-03-19 11:27 马肯尼煤牙巴骨 阅读(140) 评论(0) 推荐(0)
摘要: public static class BinarySerializationHelper { public static void ToBinaryFile(this T tempSerializeList, string path) // 二进制序列化 { //路径 var fs = new FileStream(path, Fil... 阅读全文
posted @ 2019-03-19 10:19 马肯尼煤牙巴骨 阅读(128) 评论(0) 推荐(0)
摘要: namespace Test { using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Test.Share; using Microshaoft; public class ... 阅读全文
posted @ 2019-03-19 10:00 马肯尼煤牙巴骨 阅读(198) 评论(0) 推荐(0)