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())
93
private protected override Iterator<TElement> Clone() => new OrderedIterator<TElement, TKey>(
_source
, _keySelector, _comparer, _descending, _parent);
145
TElement[] buffer =
_source
.ToArray();
185
private protected override Iterator<TElement> Clone() => new ImplicitlyStableOrderedIterator<TElement>(
_source
, _descending);
216
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())
194
using (IEnumerator<TElement> e =
_source
.GetEnumerator())
221
TElement[] buffer =
_source
.ToArray();
267
using IEnumerator<TElement> e =
_source
.GetEnumerator();
319
using IEnumerator<TElement> e =
_source
.GetEnumerator();
369
TElement[] array =
_source
.ToArray();
376
List<TElement> list =
_source
.ToList();
389
if (TryGetSpan(
_source
, out ReadOnlySpan<TElement> span))
397
Min(
_source
) :
398
Max(
_source
);
403
using IEnumerator<TElement> e =
_source
.GetEnumerator();
482
TElement[] buffer = _source.
_source
.ToArray();