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)
398ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 412ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 433int count = _source.Count; 439_selector(_source[i]); 449return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue); 455return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, 0, count - 1); 460if ((uint)index < (uint)_source.Count) 463return _selector(_source[index]); 472if (_source.Count != 0) 475return _selector(_source[0]); 484int len = _source.Count; 488return _selector(_source[len - 1]); 497int count = _source.Count; 501if (EqualityComparer<TResult>.Default.Equals(_selector(_source[i]), value))