Reflection Types

  • Thread starter Thread starter Roger Webb
  • Start date Start date
R

Roger Webb

Hey,

I'm attempting to use reflection in order to get the types of properties
in a class. However, I seem to be having trouble determining exactly which
type I am getting. In the foreach of running through the properties, the
PropertyInfo.Name does cycle through all the properties, however, if you
check the PropertyInfo.GetType().ToString() it is always
"System.Reflection.PropertyInfo". Which technically makes sense. What
doesnt make sense is that the PropertyInfo.GetType().IsEnum SEEMS to work
for each property.

So, my question is, how do I get the type of the property I am on?

Does this make sense?

- Roger
 
Back
Top