title: C# use System.Type as Generic parameter
body: <p>I have a list of types (System.Type) which need te be queried on the database.</p>
  
  <p>For each of this types, I need to call the following extensionmethod (which is part of LinqToNhibernate): </p>
  
  <pre><code>Session.Linq&lt;MyType&gt;()
  </code></pre>
  
  <p>However I do not have MyType, but I want to use a Type instead.</p>
  
  <p>What I have is: </p>
  
  <pre><code>System.Type typeOne;
  </code></pre>
  
  <p>But I cannot perform the following: </p>
  
  <pre><code>Session.Linq&lt;typeOne&gt;()
  </code></pre>
  
  <p>How can I use a Type as a Generic parameter?</p>