title: Nested List Question
body: <p>I have a question about Nested Lists.  </p>
  
  <p>I have a class similar to the following...</p>
  
  <pre><code>public class Order
  {
      private Guid id;
      [DataMember]
      public Guid ID { get { return id; } set { id = value; }}
  
      private List&lt;Items&gt; orderItems;
      [DataMember]
      public List&lt;Items&gt; OrderItems { get { return orderItems; } set {   orderItems= value; } }
  
  }
  
  public class Items
  {
      private string itemName;
      [DataMember]
      public string ItemName { get { return itemName; } set { itemName = value; }}
  
   }
  </code></pre>
  
  <p>This seems to be ok until i reference the list within in my code saying something similar to </p>
  
  <pre><code>if myItemName = this.order.orderItems[0].itemName
  </code></pre>
  
  <p>The problem comes when I add the "[0].itemName".  Can anyone help me with what I am missing?</p>