title: Can you instantiate a template class at runtime using C#
body: <p>Is it possible to instantiate a template class at runtime for example:</p>
  
  <pre><code>Type type = Type.GetType("iTry.Workflow.Person");
  WorkflowPropertyViewModel&lt;type&gt; propViewModel = new WorkflowPropertyViewModel&lt;type&gt;();
  </code></pre>
  
  <p>This obviously does not work. Is there some other way to do it?</p>
  
  <p>The Generic class looks like the following:</p>
  
  <pre><code>public class WorkflowPropertyViewModel&lt;T&gt; : IProperty&lt;T&gt;  
  {
      public Task&lt;T&gt; ValueAsync
      {
          get;
          set;
      }
  
      public T Value
      {
          get;
          set;
      }
  
      public IQueryable&lt;T&gt; PossibleItems
      {
          get;
          set;
      }
  }
  </code></pre>