title: Adding value to a list of item in a class c#
body: <p>Below are my 3 methods,</p>
  
  <pre><code>public class abcOrder
  {
      public Items items { get; set; }
  }
  
  public class Item
  {
      public string orderrefno { get; set; }
      public string sku { get; set; }
      public string qty { get; set; }
  
  }
  
      public class Items
      {
          public List&lt;Item&gt; item { get; set; }
      }
  </code></pre>
  
  <p>now i want to assign like below,</p>
  
  <pre><code>abcOrder.items.item.Add(new Item
          {
              orderrefno = "12345",
              sku = "sk8765",
              qty = 3
           });
  </code></pre>
  
  <p>But i am getting items as null in abcOrder.items .Please help.</p>