Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C#

Conversion Between DataTable and List<TSource> in C#

Rate me:
Please Sign up or sign in to vote.
4.88/5 (34 votes)
9 Jun 2014CPOL3 min read 142.2K   2.4K   49  
Conversion between DataTable and List in C#
This article is about to convert, a List of an object to a DataTable or, a DataTable to an object List. This is going to be a generic solution using extension methods and generics.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions