Ejemplo n.º 1
0
 public void AddElement(ElementContainer element)
 {
     if (ElemCol == null)
     {
         ElemCol = new ElementCollection();
     }
     ElemCol.Add(element);
 }
Ejemplo n.º 2
0
 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]);
     }
 }
Ejemplo n.º 3
0
 public void AddElement(ElementCollection elemCol)
 {
     if (ElemCol == null)
     {
         ElemCol = new ElementCollection();
     }
     foreach (ElementContainer elem in elemCol)
     {
         ElemCol.Add(elem);
     }
 }