摘要: 原文连接C# SerializableSystem.SerializableAttribute串行化是指存储和获取磁盘文件、内存或其他地方中的对象。在串行化时,所有的实例数据都保存到存储介质上,在取消串行化时,对象会被还原,且不能与其原实例区别开来。只需给类添加Serializable属性,就可以实现串行化实例的成员。并行化是串行化的逆过程,数据从存储介质中读取出来,并赋给类的实例变量。例: 1 [Serializable] 2 public class Person 3 { 4 public Person() 5 { 6 } 7 8 public int A... 阅读全文
posted @ 2012-02-07 21:44 __简言 阅读(5636) 评论(2) 推荐(0) 编辑