.NET-일반 컬렉션을 DataTable로 변환 일반 컬렉션 (List)을 DataTable로 변환하려고합니다. 이 작업을 수행하는 데 도움이되는 다음 코드를 찾았습니다. // Sorry about indentation public class CollectionHelper { private CollectionHelper() { } // this is the method I have been using public static DataTable ConvertTo(IList list) { DataTable table = CreateTable(); Type entityType = typeof(T); PropertyDescriptorCollection properties = TypeDescriptor.GetPr..