1 write to _source
System.Linq (1)
System\Linq\Select.cs (1)
164
_source
= source;
17 references to _source
System.Linq (17)
System\Linq\Select.cs (4)
168
private int CountForDebugger =>
_source
.Length;
170
private protected override Iterator<TResult> Clone() => new ArraySelectIterator<TSource, TResult>(
_source
, _selector);
174
TSource[] source =
_source
;
188
new ArraySelectIterator<TSource, TResult2>(
_source
, CombineSelectors(_selector, selector));
System\Linq\Select.SpeedOpt.cs (13)
143
TSource[] source =
_source
;
154
TSource[] source =
_source
;
178
foreach (TSource item in
_source
)
184
return
_source
.Length;
190
if (count >=
_source
.Length)
195
return new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, _selector, count, int.MaxValue);
201
return count >=
_source
.Length ?
203
new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, _selector, 0, count - 1);
208
TSource[] source =
_source
;
221
Debug.Assert(
_source
.Length > 0); // See assert in constructor
224
return _selector(
_source
[0]);
229
Debug.Assert(
_source
.Length > 0); // See assert in constructor
232
return _selector(
_source
[^1]);