Col1 Col2 1 10 2 12 3 13 </pre> I want to get list columns name like below Col1 Col2
List<object> g = new List<object>() { new { a = 1, s = 2, d = 3 }, new { a = 1, s = 2, d = 3 } }; foreach (object item in g) { object n = item.GetType().GetProperties().Select(k => k.Name).ToList(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)