title: C# List-like class constructor
body: <p>I'm making a Tree class that will contain nodes etc. I want to be able to define my Tree's in a similar way to constructing a list, E.g; <code>Tree&lt;*dataType*&gt; = new Tree&lt;*datatype*&gt;();</code> This will allow me to store and grab each of those datatypes from the nodes contained within.</p>
  
  <p>My Tree structure will contain a list of nodes, each being constructed in a similar way (<code>Node&lt;*datatype*&gt;</code>) these will contain an instance of a type, e.g Integer. This type will be common to the tree and all nodes contained within.</p>
  
  <p>I've Googled around but have not been able to find anything.</p>
  
  <p>How can i accomplish this if at all possible?</p>