I have a class containing several properties (all are strings if it makes any difference). I also have a list, which contains many different instances of the class.
Use Reflection to do this
SomeClass A = SomeClass(...) PropertyInfo[] properties = A.GetType().GetProperties();