Access to opbject properties through Reflection

akashenk

New member
Joined
Oct 19, 2005
Messages
1
Programming Experience
5-10
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
 
Back
Top