public static DataTable Create(List <object[]> root) { DataTable table = DataTableFactory.Create(); table.TableName = nameof(Origami.Models.Assesment); foreach (var entry in root) { PopulateData(entry, ref table); } return(table); }
private static IEnumerable <PropertyInfo> Props(object item) => DataTableFactory.Props(item.GetType());
private static string NameOf(Type type, PropertyInfo prop) => DataTableFactory.NameOf(type, prop);