Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Need to use Reflection to read a property

I know the name of the property as a string, as well as its return type. But I need to call that property and presume I need to use reflection a nd posssible InvokeMember to do so.

Please explain how to do this or what I actually need to do.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well since you mention property and reflection I am guessing you want to read the property of a page or a usercontrol otherwise I can't imagine what your involved in exactly.

What type of object are you trying to read a property from (class, page, uc, etc)?
Avatar of curiouswebster

ASKER

Thanks. All set with this since I ended up not using reflection (this time).