title: Create List of Type customType
body: <p>I am trying to create a list of a custom type that is set at runtime. How is this possible?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Type customType = typeof(string); // or someOtherVariable.GetType();
  
  List&lt;customType&gt; ls = new List&lt;customType&gt;(); // Error: The type or namespace name `customType' could not be found
  </code></pre>