title: is this possible: c# collection of Type with constrains, or collection of generic type?
body: <p>I'm trying to store types in a collection, so that i can later instantiate objects of the types in the collection. But I'm not sure how to do this the best way.</p>
  
  <p>What i have so far:</p>
  
  <pre><code>List&lt;Type&gt; list = new List&lt;Type&gt;();
  list.Add(typeof(MyClass));
  var obj = (MyClass)Activator.CreateInstance(list[0]);
  </code></pre>
  
  <p>I would like to have some constrains on the <code>Type</code>, or better yet, just a generic type in the collection instead of an instantiated <code>Type</code> object. Is this possible?</p>