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