Possible Duplicate:
C# How can I get the value of a string property via Reflection?
Get property value from string using reflection in C#
When I have a string, I want to compare this with all my property names. When there is a match, how can I return the value of this property?
Class = Setting
Setting has 2 properties.
When I have a string that is the same as one of the propertie names. How can I return the value of that property?
Thanks.