title: Get all types implementing specific open generic type
body: <p>How do I get all types that implementing a specific open generic type?</p>
  
  <p>For instance:</p>
  
  <pre><code>public interface IUserRepository : IRepository&lt;User&gt;
  </code></pre>
  
  <p>Find all types that implement <code>IRepository&lt;&gt;</code>.</p>
  
  <pre><code>public static IEnumerable&lt;Type&gt; GetAllTypesImplementingOpenGenericType(Type openGenericType, Assembly assembly)
  {
    ...
  }
  </code></pre>