非序列化字段与反序列化完成后回调
摘要:
示例:public class Class1 : IDeserializationCallback{ public DateTime Birthday { get; set; } [NonSerialized] public int Age; public void OnDeserialization(object sender) { Age = DateTime.Now.Year - Birthday.Year; }} 阅读全文
posted @ 2013-07-21 14:34 yao2yao4 阅读(194) 评论(0) 推荐(0) 编辑