title: Get property value from string using reflection
body: <p>I am trying implement the <a href="http://geekswithblogs.net/shahed/archive/2008/07/24/123998.aspx" rel="noreferrer">Data transformation using Reflection</a><sup>1</sup> example in my code.</p>
  
  <p>The <code>GetSourceValue</code> function has a switch comparing various types, but I want to remove these types and properties and have <code>GetSourceValue</code> get the value of the property using only a single string as the parameter.  I want to pass a class and property in the string and resolve the value of the property.</p>
  
  <p>Is this possible?</p>
  
  <p><sup>1</sup> <sub><a href="https://web.archive.org/web/20130815002453/http://msmvps.com/blogs/shahed/archive/2008/07/24/c-reflection-tips-data-transformation-using-reflection.aspx" rel="noreferrer">Web Archive version of original blog post</a></sub></p>