Example #1
0
 /// <summary>
 /// Nahradí list elementov(začiatok na CurrentIndex) listom elemov.
 /// </summary>
 /// <param name="length"></param>
 /// <param name="elems"></param>
 public void Replace(int length, List <IElement> elems)
 {
     CurrentElements.RemoveRange(CurrentIndex, length);
     CurrentElements.InsertRange(CurrentIndex, elems);
 }
Example #2
0
 /// <summary>
 /// Nahradí list elementov(začiatok na CurrentIndex) jediným elemom.
 /// </summary>
 /// <param name="length"></param>
 /// <param name="elem"></param>
 public void Replace(int length, IElement elem)
 {
     CurrentElements.RemoveRange(CurrentIndex, length);
     CurrentElements.Insert(CurrentIndex, elem);
 }