private void restoreCollection(TimeCellCollection collection, JsonData tree)
 {
     if (tree == null)
     {
         return;
     }
     if (tree.IsNull)
     {
         return;
     }
     if (!tree.IsArray)
     {
         throw new ArgumentException("Array JsonData expected. Received: " + tree.GetJsonType());
     }
     foreach (JsonData jsonData in ((IEnumerable)tree))
     {
         TimeCell timeCell = new TimeCell();
         timeCell.Start = (DateTime)jsonData["start"];
         timeCell.End   = (DateTime)jsonData["end"];
         if (jsonData["width"] != null)
         {
             timeCell.Width = new int?((int)jsonData["width"]);
         }
         collection.Add(timeCell);
     }
 }
 public bool Contains(TimeCell value)
 {
     return(base.List.Contains(value));
 }
 public void Remove(TimeCell value)
 {
     base.List.Remove(value);
 }
 public void Insert(int index, TimeCell value)
 {
     base.List.Insert(index, value);
 }
 public int IndexOf(TimeCell value)
 {
     return(base.List.IndexOf(value));
 }
 public int Add(TimeCell value)
 {
     return(base.List.Add(value));
 }