Does anyone know of a way to access a list of an object's properties and values in a dynamic (reflective) way. In other words, without explicitly citing the property name. For instance I have an object called "Person" which has 2 properties... "Name" and "Age". I would like to be able to loop through all of the object's properties at run-time and print out the property name and value.
Thanks in advance!
Al
Thanks in advance!
Al