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.
foreach(object item in sequence)
{
if (item == null) continue;
foreach(PropertyInfo property in item.GetType().GetProperties())
{
// do something with the property
}
}