1 write to _source
System.Linq (1)
System\Linq\Select.cs (1)
257
_source
= source;
18 references to _source
System.Linq (18)
System\Linq\Select.cs (4)
261
private int CountForDebugger =>
_source
.Count;
263
private protected override Iterator<TResult> Clone() => new IListSelectIterator<TSource, TResult>(
_source
, _selector);
270
_enumerator =
_source
.GetEnumerator();
300
new IListSelectIterator<TSource, TResult2>(
_source
, CombineSelectors(_selector, selector));
System\Linq\Select.SpeedOpt.cs (14)
469
int count =
_source
.Count;
476
Fill(
_source
, results, _selector);
483
IList<TSource> source =
_source
;
484
int count =
_source
.Count;
505
int count =
_source
.Count;
511
_selector(
_source
[i]);
521
return new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, _selector, count, int.MaxValue);
527
return new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, _selector, 0, count - 1);
532
if ((uint)index < (uint)
_source
.Count)
535
return _selector(
_source
[index]);
544
if (
_source
.Count != 0)
547
return _selector(
_source
[0]);
556
int len =
_source
.Count;
560
return _selector(
_source
[len - 1]);