41 writes to _current
System.Linq (41)
System\Linq\AppendPrepend.cs (4)
65_current = _enumerator.Current; 111_current = _item; 128_current = _item; 204_current = _node.Item;
System\Linq\Concat.cs (1)
246_current = _enumerator.Current;
System\Linq\DefaultIfEmpty.cs (3)
52_current = _enumerator.Current; 57_current = _default; 66_current = _enumerator.Current;
System\Linq\Distinct.cs (2)
126_current = element; 137_current = element;
System\Linq\Grouping.cs (4)
177_current = _resultSelector(_g.Key, _g._elements); 233_current = _resultSelector(_g.Key, _g._elements); 288_current = _g; 341_current = _g;
System\Linq\Iterator.cs (1)
60_current = default!;
System\Linq\OrderedEnumerable.cs (2)
138_current = _buffer[map[i]]; 209_current = buffer[i];
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
475_current = _buffer[map[i]]; 494_current = _source.GetEnumerableSorter().ElementAt(buffer, count, _minIndexInclusive);
System\Linq\Range.cs (2)
56_current = _start; 60if (++_current == _end)
System\Linq\Repeat.cs (1)
38_current = element;
System\Linq\Reverse.cs (1)
89_current = _buffer[index];
System\Linq\Select.cs (4)
133_current = _selector(_enumerator.Current); 179_current = _selector(source[index]); 226_current = _selector(_enumerator.Current); 277_current = _selector(_enumerator.Current);
System\Linq\Select.SpeedOpt.cs (3)
266_current = _selector(_start + index); 602_current = _selector(_enumerator.Current); 815_current = _selector(_source[_minIndexInclusive + index]);
System\Linq\SelectMany.cs (1)
218_current = _subEnumerator.Current;
System\Linq\SkipTake.SpeedOpt.cs (2)
43_current = _source[_minIndexInclusive + index]; 316_current = _enumerator.Current;
System\Linq\Union.cs (2)
142_current = element; 158_current = element;
System\Linq\Where.cs (6)
130_current = item; 180_current = item; 231_current = item; 285_current = _selector(item); 337_current = _selector(item); 404_current = _selector(item);
13 references to _current
System.Linq (13)
System\Linq\Iterator.cs (1)
41public TSource Current => _current;
System\Linq\Repeat.cs (1)
44return new RepeatIterator<TResult>(_current, _count);
System\Linq\Repeat.SpeedOpt.cs (11)
16if (_current is not null) 18Array.Fill(array, _current); 27SetCountAndGetSpan(list, _count).Fill(_current); 45return new RepeatIterator<TResult>(_current, _count - count); 57return new RepeatIterator<TResult>(_current, count); 65return _current; 75return _current; 81return _current; 87return EqualityComparer<TResult>.Default.Equals(_current, item); 93array.AsSpan(arrayIndex, _count).Fill(_current); 104return _current;