title: C# : instantiate a List, given a reference to a Type
body: <p>Suppose that, in C#, <code>myType</code> is a reference to some <code>Type</code>.
  Using <code>myType</code> only, is it possible to create a <code>List</code> of objects of <code>myType</code> ?</p>
  
  <p>For example, in the code below, although it is erroneous, I'd like to instantiate via </p>
  
  <p><code> new List <code>&lt;</code>myType<code>&gt;</code> ( ) </code> .</p>
  
  <pre><code>using System ;
  using System.Reflection ;
  using System.Collections.Generic ;
  
  class MyClass
      {
      }
  
  class MainClass
      {
  
      public static void Main ( string [] args )
          {
  
          Type  myType  =  typeof ( MyClass ) ;
  
          List &lt; myType &gt;  myList  =  new List &lt; myType &gt; ( ) ;
  
          }
  
      }
  </code></pre>