1 write to _source
System.Linq (1)
System\Linq\Select.cs (1)
207
_source
= source;
16 references to _source
System.Linq (16)
System\Linq\Select.cs (4)
211
private int CountForDebugger =>
_source
.Count;
213
private protected override Iterator<TResult> Clone() => new ListSelectIterator<TSource, TResult>(
_source
, _selector);
220
_enumerator =
_source
.GetEnumerator();
238
new ListSelectIterator<TSource, TResult2>(
_source
, CombineSelectors(_selector, selector));
System\Linq\Select.SpeedOpt.cs (12)
367
ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(
_source
);
381
ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(
_source
);
402
int count =
_source
.Count;
408
_selector(
_source
[i]);
418
return new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, _selector, count, int.MaxValue);
424
return new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, _selector, 0, count - 1);
429
if ((uint)index < (uint)
_source
.Count)
432
return _selector(
_source
[index]);
441
if (
_source
.Count != 0)
444
return _selector(
_source
[0]);
453
int len =
_source
.Count;
457
return _selector(
_source
[len - 1]);