摘要: c#中的序列化是指将对象写入流的过程,反序列话是指将对象从流中读取的过程。 protobuf-net: Protobuf是google开源的一个项目,用户数据序列化反序列化,google声称google的数据通信都是用该序列化方法。它比xml格式要少的多,甚至比二进制数据格式也小的多。 Protob 阅读全文
posted @ 2016-03-28 16:05 一生一世的陪伴 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.IO;using ICSharpCode.SharpZipLib;using ICSharpCode.SharpZipLib.Zip;using 阅读全文
posted @ 2016-03-28 15:37 一生一世的陪伴 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Process[] processes1 = Process.GetProcessesByName("XXX.exe"); //xxx表示项目名 if (processes1.Length<1) { OpenExe.StartProcess("XXX.exe", Application.Startu 阅读全文
posted @ 2016-03-28 11:55 一生一世的陪伴 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 关于C#中timer类 在C#里关于定时器类就有3个 1.定义在System.Windows.Forms里 2.定义在System.Threading.Timer类里 3.定义在System.Timers.Timer类里 System.Windows.Forms.Timer是应用于WinForm中的 阅读全文
posted @ 2016-03-28 11:49 一生一世的陪伴 阅读(217) 评论(0) 推荐(0) 编辑