Convert deserialized json class to datatable

前端 未结 3 974
误落风尘
误落风尘 2021-01-17 05:34

I am trying to convert json that I deserialized to a class to a datatable by using the code below ,however the code below fails at the last line.

using (var          


        
3条回答
  •  逝去的感伤
    2021-01-17 05:48

    Have you tried having your class inherit from the DataTable class? Ideally you would be able to manipulate the data and have the end result still be a DataTable.

提交回复
热议问题