1 write to _source
System.Linq (1)
System\Linq\OrderedEnumerable.cs (1)
16protected OrderedIterator(IEnumerable<TElement> source) => _source = source;
27 references to _source
System.Linq (27)
System\Linq\OrderedEnumerable.cs (6)
30new OrderedIterator<TElement, TKey>(_source, keySelector, comparer, @descending, this); 35using (IEnumerator<TElement> e = _source.GetEnumerator()) 93private protected override Iterator<TElement> Clone() => new OrderedIterator<TElement, TKey>(_source, _keySelector, _comparer, _descending, _parent); 145TElement[] buffer = _source.ToArray(); 185private protected override Iterator<TElement> Clone() => new ImplicitlyStableOrderedIterator<TElement>(_source, _descending); 216buffer = _source.ToArray();
System\Linq\OrderedEnumerable.SpeedOpt.cs (21)
17TElement[] buffer = _source.ToArray(); 30TElement[] buffer = _source.ToArray(); 56if (_source is Iterator<TElement> iterator) 61return !onlyIfCheap || _source is ICollection<TElement> || _source is ICollection ? _source.Count() : -1; 66TElement[] buffer = _source.ToArray(); 91TElement[] buffer = _source.ToArray(); 153TElement[] buffer = _source.ToArray(); 168using (IEnumerator<TElement> e = _source.GetEnumerator()) 194using (IEnumerator<TElement> e = _source.GetEnumerator()) 221TElement[] buffer = _source.ToArray(); 267using IEnumerator<TElement> e = _source.GetEnumerator(); 319using IEnumerator<TElement> e = _source.GetEnumerator(); 369TElement[] array = _source.ToArray(); 376List<TElement> list = _source.ToList(); 389if (TryGetSpan(_source, out ReadOnlySpan<TElement> span)) 397Min(_source) : 398Max(_source); 403using IEnumerator<TElement> e = _source.GetEnumerator(); 482TElement[] buffer = _source._source.ToArray();