摘要:
public class CollectionHelper{ private CollectionHelper() { } public static DataTable ConvertTo<T>(IList<T> list) { DataTable table = CreateTable<T>(); Type entityType = typeof(T); PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(entityType); foreach (T item i 阅读全文
posted @ 2010-01-25 23:40 codingsilence 阅读(245) 评论(0) 推荐(0) 编辑