Example #1
0
 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));
 }
Example #2
0
 internal Enumerator(SplittedEnumerable <T> parent)
 {
     this.parent = parent;
     parent.createdEnumerators.Add(this);
     Reset();
 }