public Enumerator(IBatchEnumerator <T> source, int batchSize, int take) { this.source = source; BatchSize = batchSize; sourceBatch = new T[batchSize]; this.take = take; }
public Enumerator(IBatchEnumerator <T> source, int skip) { this.source = source; this.skip = skip; sourceBatch = new T[BatchSize]; }
/// <summary> /// abstract SetEnumeration Implementation /// </summary> /// <param name="enumerator"></param> protected override void SetEnumerator(out IBatchEnumerator <TResult> enumerator) { enumerator = new BatchEnumerator <TModel, TResult>(Items, Response, Order, Filter, BatchSizeLocal); }
public Enumerator(IBatchEnumerator <T> source, EqualityComparer <T> equality) { this.source = source; unique = new UniqueList <T>(BatchSize, equality); sourceBatch = new T[BatchSize]; }
public Enumerator(IBatchEnumerator <T> source, Func <T, TResult> selector) { this.source = source; this.selector = selector; sourceBatch = new T[BatchSize]; }
public Enumerator(IBatchEnumerator <T> source, Func <T, bool> predicate) { this.source = source; this.predicate = predicate; sourceBatch = new T[BatchSize]; }
/// <summary> /// SetEnumerator implementation based on AbstractBaseEnumerable abstract method /// </summary> /// <param name="enumerator"></param> protected override void SetEnumerator(out IBatchEnumerator <TModel> enumerator) { enumerator = new BatchEnumeratorAggregate <TModel>(Items); }
/// <summary> /// /// </summary> /// <param name="enumerator"></param> protected abstract void SetEnumerator (out IBatchEnumerator<TResult> enumerator);