title: A generic list of generics
body: <p>I'm trying to store a list of generic objects in a generic list, but I'm having difficulty declaring it. My object looks like:</p>
  
  <pre><code>public class Field&lt;T&gt;
  {
      public string Name { get; set; }
      public string Description { get; set; }
      public T Value { get; set; }
  
      /*
      ...
      */
  }
  </code></pre>
  
  <p>I'd like to create a list of these. My problem is that each object in the list can have a separate type, so that the populated list could contain something like this:</p>
  
  <pre><code>{ Field&lt;DateTime&gt;, Field&lt;int&gt;, Field&lt;double&gt;, Field&lt;DateTime&gt; }
  </code></pre>
  
  <p>So how do I declare that?</p>
  
  <pre><code>List&lt;Field&lt;?&gt;&gt;
  </code></pre>
  
  <p>(I'd like to stay as typesafe as possible, so I don't want to use an ArrayList).</p>