posted @ 2010-10-15 20:22 口渴的火麒麟 阅读(169) 评论(0) 推荐(0)
摘要:
//序列化 static string Serialize<T>(T t) { using (StringWriter sw = new StringWriter()) { XmlSerializer xz = new XmlSerializer(t.GetType()); xz.Serialize(sw, t); return sw.ToString(); } } ... 阅读全文