摘要: 二 序列化XML文件与实体类的互相转换一.将XML文件反序列化为实体类对象 1. 通常程序的配置信息都保存在程序或者网站的专门的配置文件中(App.config/web.config)。但是现在为了演示XML序列化和反序列化,将配置信息保存在一个XML文件(config.xml)中,通过反序列化将... 阅读全文
posted @ 2015-04-23 13:57 Adam_Li 阅读(911) 评论(0) 推荐(0) 编辑
摘要: //Create our own namespaces for the outputXmlSerializerNamespaces ns = new XmlSerializerNamespaces ();//Add an empty namespace and empty valuens.Add (... 阅读全文
posted @ 2015-04-23 09:56 Adam_Li 阅读(273) 评论(0) 推荐(0) 编辑