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(); 91private protected override Iterator<TElement> Clone() => new OrderedIterator<TElement, TKey>(_source, _keySelector, _comparer, _descending, _parent); 143TElement[] buffer = _source.ToArray(); 183private protected override Iterator<TElement> Clone() => new ImplicitlyStableOrderedIterator<TElement>(_source, _descending); 214buffer = _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(); 192using IEnumerator<TElement> e = _source.GetEnumerator(); 217TElement[] buffer = _source.ToArray(); 263using IEnumerator<TElement> e = _source.GetEnumerator(); 315using IEnumerator<TElement> e = _source.GetEnumerator(); 365TElement[] array = _source.ToArray(); 372List<TElement> list = _source.ToList(); 385if (TryGetSpan(_source, out ReadOnlySpan<TElement> span)) 393Min(_source) : 394Max(_source); 399using IEnumerator<TElement> e = _source.GetEnumerator(); 478TElement[] buffer = _source._source.ToArray();