I have few methods that returns different Generic Lists.
Exists in .net any class static method or whatever to convert any list into a datatable? The only thing tha
I think it's more convenient and easy to use.
List _lobj= new List(); var json = JsonConvert.SerializeObject(_lobj); DataTable dt = (DataTable)JsonConvert.DeserializeObject(json, (typeof(DataTable)));