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
var csv = string.Join(",",myObj .GetType() .GetProperties(BindingFlags.Public | BindingFlags.Instance) .Select(p => p.GetValue(myObj, null).ToString()) .ToArray());