• 2024-10-12C# ListToDataTable
    publicstaticDataTableListToDataTable<T>(List<T>list){DataTabledt=newDataTable();//获取实体类型Typetype=typeof(T);//添加列PropertyInfo[]properties=type.G