title: Creating an instance of generic class using a type reflected from an assembly
body: <p>I have a class like below which has some methods on it. </p>
  
  <pre><code>class RepositoryManager&lt;T&gt; where T: IEntity
  </code></pre>
  
  <p>What I would like to do, is go through all the types in my assembly that implement IEntity and create a version of RepositoryManager for each of those types. I can read all types in my assembly that implement IEntity through reflection. </p>
  
  <p>1) But using those types, how do I create an instance of RepositoryManager for each of those types? </p>
  
  <p>2) How do I invoke a method on one of those created instances if they are not strongly typed?</p>