title: Creating a generic IList instance using reflection
body: <p>I am trying to create a generic list of objects using reflection. The below code throws an error <strong>Cannot create an instance of an interface.</strong> . I could change the IList to List and it works fine, but I was wondering if there is way to get this working with an IList.</p>
  
  <pre><code>    var name = typeof (IList&lt;T&gt;).AssemblyQualifiedName;
  
      Type type = Type.GetType(name);
  
      var list = Activator.CreateInstance(type);
  </code></pre>