title: Get generic type of class at runtime
body: <p>How can I achieve this?</p>
  
  <pre><code>public class GenericClass&lt;T&gt;
  {
      public Type getMyType()
      {
          //How do I return the type of T?
      }
  }
  </code></pre>
  
  <p>Everything I have tried so far always returns type <code>Object</code> rather than the specific type used.</p>