title: Using Reflection to set a Property with a type of List<CustomClass>
body: <p>How can I use reflection to create a generic List with a custom class (List&lt;CustomClass&gt;)?  I need to be able to add values and use
  <code>propertyInfo.SetValue(..., ..., ...)</code> to store it.  Would I be better off storing these List&lt;>'s as some other data structure?</p>
  
  <p>Edit:</p>
  
  <p>I should have specified that the object is more like this, but Marc Gravell's answer works still.</p>
  
  <pre><code>class Foo
  {
      public List&lt;string&gt; Bar { get; set; }
  }
  </code></pre>