日期:2014-05-17  浏览次数:20961 次

关于list<T>转换table
我写了一个类,其中一个方法参数是Datatable,当我想用list<t>做参数时,知道t的属性就好转换,现在我不知道,有没有办法转换一下

------解决方案--------------------
typeof(类名).GetProperties();再遍历属性数组
------解决方案--------------------
http://blog.csdn.net/happy09li/article/details/7531804
------解决方案--------------------
参考:http://www.cnblogs.com/kulong995/archive/2010/05/20/1740328.html