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;
250
IEnumerable<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;
75
enumerator.
_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)
264
int 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;
177
index =
_state
++;
223
_state
= 2;
282
index =
_state
++;
329
_state
= 2;
395
_state
= 2;
43 references to _state
System.Linq (43)
System\Linq\AppendPrepend.cs (2)
105
switch (
_state
)
195
switch (
_state
)
System\Linq\Concat.cs (2)
233
if (
_state
== 1)
239
if (
_state
> 1)
System\Linq\DefaultIfEmpty.cs (1)
46
switch (
_state
)
System\Linq\Distinct.cs (1)
113
switch (
_state
)
System\Linq\Grouping.cs (4)
148
switch (
_state
)
204
switch (
_state
)
260
switch (
_state
)
313
switch (
_state
)
System\Linq\Iterator.cs (1)
74
Iterator<TSource> enumerator =
_state
== 0 && _threadId == Environment.CurrentManagedThreadId ? this : Clone();
System\Linq\OrderedEnumerable.cs (2)
125
int state =
_state
;
197
int state =
_state
;
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
463
int state =
_state
;
System\Linq\Range.cs (1)
52
switch (
_state
)
System\Linq\Repeat.cs (1)
57
int sent =
_state
- 1;
System\Linq\Reverse.cs (5)
60
if (
_state
- 2 <= -2)
66
Debug.Assert(
_state
== -1 ||
_state
== 0);
71
switch (
_state
)
85
int index =
_state
- 3;
System\Linq\Select.cs (4)
123
switch (
_state
)
175
int index =
_state
- 1;
217
switch (
_state
)
267
switch (
_state
)
System\Linq\Select.SpeedOpt.cs (4)
258
if (
_state
< 1 ||
_state
== (_end - _start + 1))
592
switch (
_state
)
812
int index =
_state
- 1;
System\Linq\SelectMany.cs (1)
186
switch (
_state
)
System\Linq\SkipTake.SpeedOpt.cs (3)
40
int index =
_state
- 1;
282
int taken =
_state
- 3;
289
switch (
_state
)
System\Linq\Union.cs (4)
168
if (
_state
== 1)
170
for (IEnumerable<TSource>? enumerable = GetEnumerable(0); enumerable is not null; enumerable = GetEnumerable(
_state
- 1))
183
else if (
_state
> 0)
192
IEnumerable<TSource>? enumerable = GetEnumerable(
_state
- 1);
System\Linq\Where.cs (6)
117
switch (
_state
)
171
int index =
_state
- 1;
219
switch (
_state
)
276
int index =
_state
- 1;
325
switch (
_state
)
391
switch (
_state
)