1 write to _source
System.Linq (1)
System\Linq\Select.cs (1)
183_source = source;
18 references to _source
System.Linq (18)
System\Linq\Select.cs (4)
187private int CountForDebugger => _source.Length; 189private protected override Iterator<TResult> Clone() => new ArraySelectIterator<TSource, TResult>(_source, _selector); 193TSource[] source = _source; 207new ArraySelectIterator<TSource, TResult2>(_source, CombineSelectors(_selector, selector));
System\Linq\Select.SpeedOpt.cs (14)
144TSource[] source = _source; 155TSource[] source = _source; 179foreach (TSource item in _source) 185return _source.Length; 191if (count >= _source.Length) 196return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue); 202return count >= _source.Length ? 204new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, 0, count - 1); 209TSource[] source = _source; 222Debug.Assert(_source.Length > 0); // See assert in constructor 225return _selector(_source[0]); 230Debug.Assert(_source.Length > 0); // See assert in constructor 233return _selector(_source[^1]); 238foreach (TSource item in _source)