So we can implement following method for converting List to DataTable in C#.
C# |
C# |
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · C#Modern CSharp Mastery - Advanced Guide for Experienced DevelopersDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
abc cdedPosted Oct 25, 2017, 12:57 AM EDT
What if my class which is generic is complex which has objects inside objects ?
Mahesh kumawatPosted May 22, 2015, 9:35 PM EDT
I try like this DataTable dt = new DataTable(); dt = (DataTable)ToDataTable(lst);
Mahesh kumawatPosted May 22, 2015, 9:34 PM EDT
How to call this function ....(ToDataTable)
VEERENDRA kUMARPosted Oct 14, 2014, 4:22 PM EDT
thank u.
siva kumarPosted Jul 3, 2013, 12:52 AM EDT
exact solution worked for me.
Muhannad MagladPosted Sep 10, 2012, 11:59 PM EDT
thank you man
Muhannad MagladPosted Sep 10, 2012, 11:59 PM EDT
thank you man