title: Create a vector with a runtime defined data type
body: <p>Typically you create a Vector (strongly typed array) specifying a data type like:</p>
  
  <pre><code>new Vector&lt;PictureBox&gt;();
  </code></pre>
  
  <p>However I need to create a utility method that should be able to create a vector of any given datatype. Is it possible to specify a type using a variable instead of hard-coding it?</p>
  
  <pre><code>var type:Class = PictureBox;
  new Vector&lt;type&gt;();
  </code></pre>