Convert DataTable to List

后端 未结 14 1799
挽巷
挽巷 2020-12-04 12:09

I have an strongly typed DataTable of type MyType, I\'d like convert it in a List.

How can I do this ?

Thanks.

14条回答
  •  一整个雨季
    2020-12-04 12:50

    thanks for all of posts.... I have done it with using Linq Query, to view this please visit the following link

    http://codenicely.blogspot.com/2012/02/converting-your-datatable-into-list.html

提交回复
热议问题