C# Reflection and Getting Properties
Still not 100% sure of what you want, but this quick bit of code (untested) might get you on the right track (or at least help clarify what you want). void ReportValue(String propName, Object propValue); void ReadList<T>(List<T> list) { var props = typeof(T).GetProperties(); foreach(T item in list) { foreach(var prop in props) { ReportValue(prop.Name, prop.GetValue(item)); … Read more