zlb

11 2013 档案

C# IList<T>转为DataTable
摘要:public class WebUtil{/// /// 转换IList为DataTable/// /// 泛型类型 /// 泛型List集合 /// Datatable 对象public static DataTable ConvertToDataTable(IList list) {DataTable table = CreateTable();Type entityType = typeof(T);PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(entityType);foreach (T .. 阅读全文

posted @ 2013-11-12 15:35 zlb 阅读(628) 评论(0) 推荐(0) 编辑

导航

统计

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