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;
60
if (++
_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)
41
public TSource Current =>
_current
;
System\Linq\Repeat.cs (1)
44
return new RepeatIterator<TResult>(
_current
, _count);
System\Linq\Repeat.SpeedOpt.cs (11)
16
if (
_current
is not null)
18
Array.Fill(array,
_current
);
27
SetCountAndGetSpan(list, _count).Fill(
_current
);
45
return new RepeatIterator<TResult>(
_current
, _count - count);
57
return new RepeatIterator<TResult>(
_current
, count);
65
return
_current
;
75
return
_current
;
81
return
_current
;
87
return EqualityComparer<TResult>.Default.Equals(
_current
, item);
93
array.AsSpan(arrayIndex, _count).Fill(
_current
);
104
return
_current
;