1 write to _source
System.Linq (1)
System\Linq\Select.cs (1)
219_source = source;
18 references to _source
System.Linq (18)
System\Linq\Select.cs (4)
223private int CountForDebugger => _source.Count; 225private protected override Iterator<TResult> Clone() => new ListSelectIterator<TSource, TResult>(_source, _selector); 232_enumerator = _source.GetEnumerator(); 250new ListSelectIterator<TSource, TResult2>(_source, CombineSelectors(_selector, selector));
System\Linq\Select.SpeedOpt.cs (14)
393ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 407ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 428int count = _source.Count; 434_selector(_source[i]); 444return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue); 450return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, 0, count - 1); 455if ((uint)index < (uint)_source.Count) 458return _selector(_source[index]); 467if (_source.Count != 0) 470return _selector(_source[0]); 479int len = _source.Count; 483return _selector(_source[len - 1]); 492int count = _source.Count; 496if (EqualityComparer<TResult>.Default.Equals(_selector(_source[i]), value))