How do I transform a List<T> into a DataSet?
问题 Given a list of objects, I am needing to transform it into a dataset where each item in the list is represented by a row and each property is a column in the row. This DataSet will then be passed to an Aspose.Cells function in order to create an Excel document as a report. Say I have the following: public class Record { public int ID { get; set; } public bool Status { get; set; } public string Message { get; set; } } Given a List records, how do I transform it into a DataSet as follows: ID