title: How can I create a list of a generic type that will be passed as a parameter (VB.Net)
body: <p>say I have two POCOs I'm using in EF code first</p>
  
  <pre><code>Public class C1
      property F1 as integer
  End Class
  
  Public class C2
      property F2 as String
  End Class
  </code></pre>
  
  <p>I want to have a function that will create a list either of C1 or C2, to be used in some generic operation, such that</p>
  
  <pre><code>Sub MySub(type_of_class)
      private lst as new List(of type_of_class)
      ...
  End Sub
  </code></pre>
  
  <p>Will either create a list of C1 or of C2.</p>
  
  <p>I know generics are probably the answer by my knowlege is kind of generic :-)</p>
  
  <p>thanks!</p>