title: Object does not match target type using C# Reflection
body: <p>I am trying to get a value of a Window as follows</p>
  
  <p><strong>this</strong> refers to the main window (window1)</p>
  
  <pre><code>Type type = this.GetType();
  PropertyInfo pi = type.GetProperty("Left");
  object obj = pi.GetValue(type, null);
  </code></pre>
  
  <p>But I get an "Object does not match target type using" error. What is wrong?</p>