How to convert nested List to Dataset in C#
问题 I have a nested list and I need to convert it to DataSet in C#. I found many example about this but they dont do what I need. I have a list in a list, I need the nested list in another DataTable in the DataSet. Here is an example of list public class InvoiceResponse(){ public string BillToName { get; set; } public string BillToAddr1 { get; set; } ... ... public List<InvoiceItemResponse> Items { get; set; } } I have used the code below to convert the List to DataSet but It didnt convert Items