52 writes to _state
System.Linq (52)
System\Linq\AppendPrepend.cs (5)
108_state = 2; 118_state = 3; 199_state = 2; 210_state = 3; 224_state = 4;
System\Linq\Concat.cs (2)
236_state = 2; 250IEnumerable<TSource>? next = GetEnumerable(_state++ - 1);
System\Linq\DefaultIfEmpty.cs (2)
53_state = 2; 58_state = -1;
System\Linq\Distinct.cs (1)
127_state = 2;
System\Linq\Grouping.cs (4)
155_state = 2; 211_state = 2; 267_state = 2; 320_state = 2;
System\Linq\Iterator.cs (2)
61_state = -1; 75enumerator._state = 1;
System\Linq\OrderedEnumerable.cs (4)
139_state++; 150_state = state = 2; 210_state++; 221_state = state = 2;
System\Linq\OrderedEnumerable.SpeedOpt.cs (3)
476_state++; 495_state = -1; 501_state = state = 2;
System\Linq\Range.cs (3)
57_state = 2; 68_state = -1; 74_state = -1; // Don't reset current
System\Linq\Repeat.cs (2)
50_state = -1; 64++_state;
System\Linq\Reverse.cs (2)
79_state = buffer.Length + 2; 90--_state;
System\Linq\Select.cs (4)
127_state = 2; 178_state++; 221_state = 2; 271_state = 2;
System\Linq\Select.SpeedOpt.cs (3)
264int index = _state++ - 1; 596_state = 2; 816++_state;
System\Linq\SelectMany.cs (3)
191_state = 2; 205_state = 3; 214_state = 2;
System\Linq\SkipTake.SpeedOpt.cs (4)
44++_state; 293_state = 2; 303_state = 3; 314_state++;
System\Linq\Union.cs (2)
175++_state; 199++_state;
System\Linq\Where.cs (6)
121_state = 2; 177index = _state++; 223_state = 2; 282index = _state++; 329_state = 2; 395_state = 2;
43 references to _state
System.Linq (43)
System\Linq\AppendPrepend.cs (2)
105switch (_state) 195switch (_state)
System\Linq\Concat.cs (2)
233if (_state == 1) 239if (_state > 1)
System\Linq\DefaultIfEmpty.cs (1)
46switch (_state)
System\Linq\Distinct.cs (1)
113switch (_state)
System\Linq\Grouping.cs (4)
148switch (_state) 204switch (_state) 260switch (_state) 313switch (_state)
System\Linq\Iterator.cs (1)
74Iterator<TSource> enumerator = _state == 0 && _threadId == Environment.CurrentManagedThreadId ? this : Clone();
System\Linq\OrderedEnumerable.cs (2)
125int state = _state; 197int state = _state;
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
463int state = _state;
System\Linq\Range.cs (1)
52switch (_state)
System\Linq\Repeat.cs (1)
57int sent = _state - 1;
System\Linq\Reverse.cs (5)
60if (_state - 2 <= -2) 66Debug.Assert(_state == -1 || _state == 0); 71switch (_state) 85int index = _state - 3;
System\Linq\Select.cs (4)
123switch (_state) 175int index = _state - 1; 217switch (_state) 267switch (_state)
System\Linq\Select.SpeedOpt.cs (4)
258if (_state < 1 || _state == (_end - _start + 1)) 592switch (_state) 812int index = _state - 1;
System\Linq\SelectMany.cs (1)
186switch (_state)
System\Linq\SkipTake.SpeedOpt.cs (3)
40int index = _state - 1; 282int taken = _state - 3; 289switch (_state)
System\Linq\Union.cs (4)
168if (_state == 1) 170for (IEnumerable<TSource>? enumerable = GetEnumerable(0); enumerable is not null; enumerable = GetEnumerable(_state - 1)) 183else if (_state > 0) 192IEnumerable<TSource>? enumerable = GetEnumerable(_state - 1);
System\Linq\Where.cs (6)
117switch (_state) 171int index = _state - 1; 219switch (_state) 276int index = _state - 1; 325switch (_state) 391switch (_state)