title: Check if 'T' inherits or implements a class/interface
body: <p>Is there a way to test if T inherits/implements a class/interface?</p>
  
  <pre><code>private void MyGenericClass&lt;T&gt; ()
  {
      if(T ... inherits or implements some class/interface
  }
  </code></pre>