2013年12月31日
摘要: 前言:开发过程中经常需要返回某实体类的列表,公司通常用的都是XML格式的接口,小猪借鉴了公司前辈留下的代码一直是类似这么写的:public static string GetXMLList(IList articlelist){using (MemoryStream memoryStream = new MemoryStream()){ XmlWriterSettings xmlWriterSettings = new XmlWriterSettings(); xmlWriterSettings.Indent = true; xmlWriterSettings.Encodin... 阅读全文
posted @ 2013-12-31 09:20 smallerpig 阅读(402) 评论(0) 推荐(0)