摘要: static void Serialize(T instance , string fileName){ using(XmlWriter writer = new XmlWriter(filename , Encoding.UTF8)) { XmlSerializer serializer = new XmlSerializer(typeof(T)); serializer.Serialize(writer , instance); }}Serialize(order , "order.xml"); 阅读全文
posted @ 2013-07-30 20:47 louiskoo 阅读(1964) 评论(0) 推荐(0) 编辑