title: Get PropertyInfo value
body: <p>I'm trying to get the value from a <code>PropertyInfo[]</code>, but I can't get it to work:</p>
  
  <pre><code>foreach (var propertyInfo in foo.GetType().GetProperties())
  {
      var value = propertyInfo.GetValue(this, null);
  }
  </code></pre>
  
  <blockquote>
    <p>Exception: <code>Object does not match target type.</code></p>
  </blockquote>
  
  <p>Isn't this how it's supposed to be done?</p>