Is there a way in c# to loop over the properties of a class?
Basically I have a class that contains a large number of property\'s (it basically holds the results of
You can make a list of oject's properties
IList properties = typeof(T).GetProperties().ToList();
And then use a foreach to navigate into the list..
foreach (var property in properties) { here's code... }