title: Passing a Type to a generic method at runtime
body: <p>I have something like this</p>
  
  <pre><code>Type MyType = Type.GetType(FromSomewhereElse);
  
  var listS = context.GetList&lt;MyType&gt;().ToList();
  </code></pre>
  
  <p>I would like to get the Type which is MyType in this case and pass it to the Generic Type method GetList</p>
  
  <p>This is the error I am getting:</p>
  
  <blockquote>
    <p>The type or namespace name 'MyType' could not be found (are you missing a using directive or an assembly reference?)  </p>
  </blockquote>