1 write to _source
System.Linq (1)
System\Linq\OrderedEnumerable.cs (1)
16
protected OrderedIterator(IEnumerable<TElement> source) =>
_source
= source;
27 references to _source
System.Linq (27)
System\Linq\OrderedEnumerable.cs (6)
30
new OrderedIterator<TElement, TKey>(
_source
, keySelector, comparer, @descending, this);
35
using IEnumerator<TElement> e =
_source
.GetEnumerator();
91
private protected override Iterator<TElement> Clone() => new OrderedIterator<TElement, TKey>(
_source
, _keySelector, _comparer, _descending, _parent);
143
TElement[] buffer =
_source
.ToArray();
183
private protected override Iterator<TElement> Clone() => new ImplicitlyStableOrderedIterator<TElement>(
_source
, _descending);
214
buffer =
_source
.ToArray();
System\Linq\OrderedEnumerable.SpeedOpt.cs (21)
17
TElement[] buffer =
_source
.ToArray();
30
TElement[] buffer =
_source
.ToArray();
56
if (
_source
is Iterator<TElement> iterator)
61
return !onlyIfCheap ||
_source
is ICollection<TElement> ||
_source
is ICollection ?
_source
.Count() : -1;
66
TElement[] buffer =
_source
.ToArray();
91
TElement[] buffer =
_source
.ToArray();
153
TElement[] buffer =
_source
.ToArray();
168
using IEnumerator<TElement> e =
_source
.GetEnumerator();
192
using IEnumerator<TElement> e =
_source
.GetEnumerator();
217
TElement[] buffer =
_source
.ToArray();
263
using IEnumerator<TElement> e =
_source
.GetEnumerator();
315
using IEnumerator<TElement> e =
_source
.GetEnumerator();
365
TElement[] array =
_source
.ToArray();
372
List<TElement> list =
_source
.ToList();
385
if (TryGetSpan(
_source
, out ReadOnlySpan<TElement> span))
393
Min(
_source
) :
394
Max(
_source
);
399
using IEnumerator<TElement> e =
_source
.GetEnumerator();
478
TElement[] buffer = _source.
_source
.ToArray();