NetBlog主题

C#序列化与反序列化源码实例
C#基础

C#序列化与反序列化源码实例

2093 0

[Serializable]public class ContentStr{public string content { get; set; }/// <summary> 序列化到"TreeViewTexted.dat"文件 </summary>public void Serialize(string Paht){try{using (Stream stream = new FileStream(Paht, FileMode.Create, Fi…