/// <summary> /// Cuts list into two parts by index. /// </summary> /// <param name="index">Index where to split.</param> /// <param name="excludeSplittingItem">If True, indexed item will not appear in any created lists. /// If False, indexed item will be the first in the second list.</param> /// <returns></returns> public virtual EList <T>[] SplitByIndex(int index, bool excludeSplittingItem) { List <T>[] pom = ((IList <T>) this).SplitByIndex(index, excludeSplittingItem); EList <T>[] ret = new EList <T> [2]; ret[0] = EList <T> .Create(pom[0]); ret[1] = EList <T> .Create(pom[1]); return(ret); }
/// <summary> /// Returns items in range from collection. /// </summary> /// <param name="startIndex">Start index, inclusive.</param> /// <param name="count">Count.</param> /// <returns></returns> public EList <T> EGetRange(int startIndex, int count) { EList <T> ret = EList <T> .Create(((IList <T>) this).EGetRange(startIndex, count)); return(ret); }