public static IEnumerable <T> Split <T>(this IEnumerable <T> source) { if (source == null) { return(Enumerable.Empty <T>()); } if (source as ICollection <T> != null) { return(source); } return(SplittedEnumerable <T> .Create(source)); }
internal Enumerator(SplittedEnumerable <T> parent) { this.parent = parent; parent.createdEnumerators.Add(this); Reset(); }