public void AddElement(ElementContainer element)
 {
     if (ElemCol == null)
     {
         ElemCol = new ElementCollection();
     }
     ElemCol.Add(element);
 }
 public void AddElement(ElementCollection elemCol, int from, int to)         // [from, to)
 {
     if (ElemCol == null)
     {
         ElemCol = new ElementCollection();
     }
     for (int i = from; i < to; ++i)
     {
         ElemCol.Add(elemCol[i]);
     }
 }
 public void AddElement(ElementCollection elemCol)
 {
     if (ElemCol == null)
     {
         ElemCol = new ElementCollection();
     }
     foreach (ElementContainer elem in elemCol)
     {
         ElemCol.Add(elem);
     }
 }