title: Assigning values to lists within lists within lists within lists
body: <p>I have a hierarchy of lists within lists, and at the very bottom I'm assigning a decimal value.  I need to assign this value based on the combination of the lists that are above it in the hierarchy.  Each element of a particular list is an Enum value, so one combination could be Trees, Buildings, BuildingNumber.  And another Trees, Buildings, BuildingPrice.  What would be the best way of assigning values to these combinations? </p>
  
  <p>The values I'm assigning <em>from</em> are coming from just an arbitrary class.  I will then need to do some calculations to some of those values to assign the new values in a particular combination.</p>
  
  <pre><code>public class Hierarchy1
  {
      public List&lt;Hierarchy2&gt; NextList;
      public Hierarchy1Enum EnumValue;
  }
  
  public class Hierarchy2
  {
      public List&lt;Hierarchy3&gt; NextList;
      public Hierarchy2Enum EnumValue;
  }
  
  public class Hierarchy3
  {
      public decimal Value;
      public Hierarchy3Enum EnumValue;
  }
  </code></pre>
  
  <p>Something like that.  The Enums each have 5-10 values so there's quite a few combinations.  </p>
  
  <p>Hierarchy1 will have a list of Hierarchy2's.  If there are 10 values in the Hierarchy2Enum, there will be 10 elements in that List (so essentially 1 element per enum).  </p>