60 writes to _state
System.Linq (60)
System\Linq\AppendPrepend.cs (5)
108_state = 2; 118_state = 3; 199_state = 2; 210_state = 3; 224_state = 4;
System\Linq\Cast.cs (1)
58_state = 2;
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\OfType.cs (1)
43_state = 2;
System\Linq\OrderedEnumerable.cs (4)
137_state++; 148_state = state = 2; 208_state++; 219_state = state = 2;
System\Linq\OrderedEnumerable.SpeedOpt.cs (3)
475_state++; 494_state = -1; 500_state = state = 2;
System\Linq\Range.cs (3)
57_state = 2; 69_state = -1; 75_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)
146_state = 2; 197_state++; 240_state = 2; 290_state = 2;
System\Linq\Select.SizeOpt.cs (1)
59_state = 2;
System\Linq\Select.SpeedOpt.cs (3)
281int index = _state++ - 1; 657_state = 2; 877++_state;
System\Linq\SelectMany.cs (3)
191_state = 2; 205_state = 3; 214_state = 2;
System\Linq\Shuffle.cs (2)
58_state++; 69_state = state = 2;
System\Linq\Shuffle.SpeedOpt.cs (2)
124_state++; 134_state = state = 2;
System\Linq\SkipTake.SpeedOpt.cs (4)
44++_state; 306_state = 2; 316_state = 3; 327_state++;
System\Linq\Union.cs (2)
175++_state; 199++_state;
System\Linq\Where.cs (6)
127_state = 2; 183index = _state++; 229_state = 2; 288index = _state++; 335_state = 2; 401_state = 2;
System\Linq\Where.SizeOpt.cs (1)
34_state = 2;
49 references to _state
System.Linq (49)
System\Linq\AppendPrepend.cs (2)
105switch (_state) 195switch (_state)
System\Linq\Cast.cs (1)
54switch (_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\OfType.cs (1)
39switch (_state)
System\Linq\OrderedEnumerable.cs (2)
123int state = _state; 195int state = _state;
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
462int 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)
142switch (_state) 194int index = _state - 1; 236switch (_state) 286switch (_state)
System\Linq\Select.SizeOpt.cs (1)
55switch (_state)
System\Linq\Select.SpeedOpt.cs (4)
275if (_state < 1 || _state == (Count + 1)) 653switch (_state) 873int index = _state - 1;
System\Linq\SelectMany.cs (1)
186switch (_state)
System\Linq\Shuffle.cs (1)
46int state = _state;
System\Linq\Shuffle.SpeedOpt.cs (1)
112int state = _state;
System\Linq\SkipTake.SpeedOpt.cs (3)
40int index = _state - 1; 295int taken = _state - 3; 302switch (_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)
123switch (_state) 177int index = _state - 1; 225switch (_state) 282int index = _state - 1; 331switch (_state) 397switch (_state)
System\Linq\Where.SizeOpt.cs (1)
30switch (_state)