2017年3月11日

C# XML对象序列化、反序列化 - PEPE YU

摘要: http://www.tuicool.com/articles/IjE7ban http://www.cnblogs.com/johnsmith/archive/2012/12/03/2799795.html XML 序列化:可以将对象序列化为XML文件,或者将XML文件反序列化为对象还有种方法 使 阅读全文

posted @ 2017-03-11 22:49 chengjunde 阅读(4013) 评论(0) 推荐(0) 编辑

NET(C#):XmlArrayItem特性和XmlElement特性在序列化数组的差别

摘要: https://www.mgenware.com/blog/?p=142 比如这样一个类,我们用XmlArrayItem特性标明数组内出现的元素类型: public class a{ [XmlArrayItem(Type = typeof(int)), XmlArrayItem(Type = typ 阅读全文

posted @ 2017-03-11 22:48 chengjunde 阅读(6475) 评论(1) 推荐(3) 编辑

导航