34 overrides of Clone
System.Linq (34)
System\Linq\AppendPrepend.cs (2)
101private protected override Iterator<TSource> Clone() => new AppendPrepend1Iterator<TSource>(_source, _item, _appending); 191private protected override Iterator<TSource> Clone() => new AppendPrependN<TSource>(_source, _prepended, _appended, _prependCount, _appendCount);
System\Linq\Concat.cs (2)
68private protected override Iterator<TSource> Clone() => new Concat2Iterator<TSource>(_first, _second); 154private protected override Iterator<TSource> Clone() => new ConcatNIterator<TSource>(_tail, _head, _headIndex, _hasOnlyCollections);
System\Linq\DefaultIfEmpty.cs (1)
42private protected override Iterator<TSource> Clone() => new DefaultIfEmptyIterator<TSource>(_source, _default);
System\Linq\Distinct.cs (1)
109private protected override Iterator<TSource> Clone() => new DistinctIterator<TSource>(_source, _comparer);
System\Linq\Grouping.cs (4)
144private protected override Iterator<TResult> Clone() => new GroupByResultIterator<TSource, TKey, TElement, TResult>(_source, _keySelector, _elementSelector, _resultSelector, _comparer); 200private protected override Iterator<TResult> Clone() => new GroupByResultIterator<TSource, TKey, TResult>(_source, _keySelector, _resultSelector, _comparer); 256private protected override Iterator<IGrouping<TKey, TElement>> Clone() => new GroupByIterator<TSource, TKey, TElement>(_source, _keySelector, _elementSelector, _comparer); 309private protected override Iterator<IGrouping<TKey, TSource>> Clone() => new GroupByIterator<TSource, TKey>(_source, _keySelector, _comparer);
System\Linq\OrderedEnumerable.cs (2)
93private protected override Iterator<TElement> Clone() => new OrderedIterator<TElement, TKey>(_source, _keySelector, _comparer, _descending, _parent); 185private protected override Iterator<TElement> Clone() => new ImplicitlyStableOrderedIterator<TElement>(_source, _descending);
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
459private protected override Iterator<TElement> Clone() => new SkipTakeOrderedIterator<TElement>(_source, _minIndexInclusive, _maxIndexInclusive);
System\Linq\Range.cs (1)
48private protected override Iterator<int> Clone() => new RangeIterator(_start, _end - _start);
System\Linq\Repeat.cs (1)
42private protected override Iterator<TResult> Clone()
System\Linq\Reverse.cs (1)
56private protected override Iterator<TSource> Clone() => new ReverseIterator<TSource>(_source);
System\Linq\Select.cs (4)
107private protected override Iterator<TResult> Clone() => 170private protected override Iterator<TResult> Clone() => new ArraySelectIterator<TSource, TResult>(_source, _selector); 213private protected override Iterator<TResult> Clone() => new ListSelectIterator<TSource, TResult>(_source, _selector); 263private protected override Iterator<TResult> Clone() => new IListSelectIterator<TSource, TResult>(_source, _selector);
System\Linq\Select.SpeedOpt.cs (3)
253private protected override Iterator<TResult> Clone() => 587private protected override Iterator<TResult> Clone() => 804private protected override Iterator<TResult> Clone() =>
System\Linq\SelectMany.cs (1)
162private protected override Iterator<TResult> Clone()
System\Linq\SkipTake.SpeedOpt.cs (2)
32private protected override Iterator<TSource> Clone() => 233private protected override Iterator<TSource> Clone() =>
System\Linq\Union.cs (2)
226private protected override Iterator<TSource> Clone() => new UnionIterator2<TSource>(_first, _second, _comparer); 265private protected override Iterator<TSource> Clone() => new UnionIteratorN<TSource>(_sources, _headIndex, _comparer);
System\Linq\Where.cs (6)
102private protected override Iterator<TSource> Clone() => new IEnumerableWhereIterator<TSource>(_source, _predicate); 166private protected override Iterator<TSource> Clone() => 214private protected override Iterator<TSource> Clone() => 271private protected override Iterator<TResult> Clone() => 320private protected override Iterator<TResult> Clone() => 375private protected override Iterator<TResult> Clone() =>
1 reference to Clone
System.Linq (1)
System\Linq\Iterator.cs (1)
74Iterator<TSource> enumerator = _state == 0 && _threadId == Environment.CurrentManagedThreadId ? this : Clone();