12 2013 档案

摘要:读取xml文件转成List对象的两种方法(附源码) 读取xml文件,是项目中经常要用到的,所以就总结一下,最近项目中用到的读取xml文件并且转成List对象的方法,加上自己知道的另一种实现方法。 就以一个简单的xml做例子。xml格式如下:1 2 3 4 5 6 7 Product对象如下:1 public class Product2 {3 public string Name { get; set; }4 5 public decimal Price { get; set; }6 7 public deci... 阅读全文
posted @ 2013-12-12 10:06 junjieok 阅读(11703) 评论(9) 推荐(7) 编辑

点击右上角即可分享
微信分享提示