title: Linq Expression property type
body: <p>I have a linq expression defined as follows:</p>
  
  <pre><code>private void GetMyPropertyType&lt;T&gt;(Expression&lt;Func&lt;T, object&gt;&gt; expression)
  {
      // some code
      ----- HERE -----
  }
  </code></pre>
  
  <p>which is called as </p>
  
  <pre><code>GetMyPropertyType&lt;SomeType&gt;(x =&gt; x.Age);
  </code></pre>
  
  <p>Now I want to know what the type is of "Age" at the position marked as "HERE".
  The closest I've gotten is:"</p>
  
  <pre><code>expression.Body.Member.ToString()
  </code></pre>
  
  <p>which returns the value <code>Int64 Age</code> that I can then split and only take the first part of. The problem however is that I want to get the full path (<code>System.Int64</code>) which it only returns for certain types (like <code>String</code>).
  Am I missing a completely obvious method? Or should I be doing it in this very ugly fashion?</p>
  
  <p>Thanks in advance for any help.</p>