Get property value by string
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/987982/c-sharp-how-can-i-get-the-value-of-a-string-property-via-reflection">C# How can I get the value of a string property via Reflection?</a><br>
  <a href="http://stackoverflow.com/questions/1196991/get-property-value-from-string-using-reflection-in-c-sharp">Get property value from string using reflection in C#</a>  </p>
</blockquote>



<p>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?</p>

<p>Class = Setting</p>

<p>Setting has 2 properties. </p>

<p>When I have a string that is the same as one of the propertie names. How can I return the value of that property?</p>

<p>Thanks.</p>
