随笔分类 -  Xml

摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Xml; 6 7 namespace Common 8 { 9 public class Xml10 {11 private XmlDocument xmlDoc;12 13 /// <summary>14 /// xml文件名,调用次大类必须先设定xml文件名15 /// </summary>16... 阅读全文
posted @ 2012-06-05 11:49 Setme 阅读(244) 评论(0) 推荐(0)
摘要:Common:/// <summary>/// 反序列化/// </summary>/// <param name="type">对象类型</param>/// <param name="filename">文件路径</param>/// <returns></returns>public static object Load(Type type, string filename){ FileStream fs = null; try { // open th 阅读全文
posted @ 2012-06-05 11:46 Setme 阅读(1175) 评论(0) 推荐(0)