title: How to get the PropertyInfo of a specific property?
body: <p>I want to get the PropertyInfo for a specific property.  I could use:</p>
  
  <pre><code>foreach(PropertyInfo p in typeof(MyObject).GetProperties())
  {
      if ( p.Name == "MyProperty") { return p }
  }
  </code></pre>
  
  <p>But there must be a way to do something similar to </p>
  
  <pre><code>typeof(MyProperty) as PropertyInfo
  </code></pre>
  
  <p>Is there?  Or am I stuck doing a type-unsafe string comparison?</p>
  
  <p>Cheers.</p>