title: How to determine if a type implements a specific generic interface type
body: <p>Assume the following type definitions:</p>
  
  <pre><code>public interface IFoo&lt;T&gt; : IBar&lt;T&gt; {}
  public class Foo&lt;T&gt; : IFoo&lt;T&gt; {}
  </code></pre>
  
  <p>How do I find out whether the type <code>Foo</code> implements the generic interface <code>IBar&lt;T&gt;</code> when only the mangled type is available?</p>