1 write to _source
System.Linq (1)
System\Linq\Select.cs (1)
164_source = source;
17 references to _source
System.Linq (17)
System\Linq\Select.cs (4)
168private int CountForDebugger => _source.Length; 170private protected override Iterator<TResult> Clone() => new ArraySelectIterator<TSource, TResult>(_source, _selector); 174TSource[] source = _source; 188new ArraySelectIterator<TSource, TResult2>(_source, CombineSelectors(_selector, selector));
System\Linq\Select.SpeedOpt.cs (13)
143TSource[] source = _source; 154TSource[] source = _source; 178foreach (TSource item in _source) 184return _source.Length; 190if (count >= _source.Length) 195return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue); 201return count >= _source.Length ? 203new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, 0, count - 1); 208TSource[] source = _source; 221Debug.Assert(_source.Length > 0); // See assert in constructor 224return _selector(_source[0]); 229Debug.Assert(_source.Length > 0); // See assert in constructor 232return _selector(_source[^1]);