290 references to State
System.Private.Xml (290)
System\Xml\Core\XmlSubtreeReader.cs (174)
70
private
State
_state;
102
_state =
State
.Initial;
203
return _state ==
State
.EndOfFile || _state ==
State
.Closed;
217
if ((int)_state <= (int)
State
.Closed)
469
case
State
.Initial:
471
_state =
State
.Interactive;
475
case
State
.Interactive:
485
_state =
State
.EndOfFile;
502
case
State
.EndOfFile:
503
case
State
.Closed:
504
case
State
.Error:
507
case
State
.PopNamespaceScope:
509
goto case
State
.ClearNsAttributes;
511
case
State
.ClearNsAttributes:
513
_state =
State
.Interactive;
514
goto case
State
.Interactive;
516
case
State
.ReadElementContentAsBase64:
517
case
State
.ReadElementContentAsBinHex:
524
case
State
.ReadContentAsBase64:
525
case
State
.ReadContentAsBinHex:
540
if (_state ==
State
.Closed)
547
if (_state !=
State
.EndOfFile)
570
_state =
State
.Closed;
579
case
State
.Initial:
583
case
State
.Interactive:
604
_state =
State
.EndOfFile;
619
case
State
.Closed:
620
case
State
.EndOfFile:
623
case
State
.PopNamespaceScope:
625
goto case
State
.ClearNsAttributes;
627
case
State
.ClearNsAttributes:
629
_state =
State
.Interactive;
630
goto case
State
.Interactive;
632
case
State
.ReadElementContentAsBase64:
633
case
State
.ReadElementContentAsBinHex:
640
case
State
.ReadContentAsBase64:
641
case
State
.ReadContentAsBinHex:
648
case
State
.Error:
668
_state =
State
.Error;
684
_state =
State
.Error;
700
_state =
State
.Error;
716
_state =
State
.Error;
732
_state =
State
.Error;
748
_state =
State
.Error;
764
_state =
State
.Error;
780
_state =
State
.Error;
796
_state =
State
.Error;
812
_state =
State
.Error;
829
case
State
.Initial:
830
case
State
.EndOfFile:
831
case
State
.Closed:
832
case
State
.Error:
835
case
State
.ClearNsAttributes:
836
case
State
.PopNamespaceScope:
882
case
State
.Interactive:
883
_state =
State
.ReadContentAsBase64;
884
goto case
State
.ReadContentAsBase64;
886
case
State
.ReadContentAsBase64:
890
_state =
State
.Interactive;
895
case
State
.ReadContentAsBinHex:
896
case
State
.ReadElementContentAsBase64:
897
case
State
.ReadElementContentAsBinHex:
910
case
State
.Initial:
911
case
State
.EndOfFile:
912
case
State
.Closed:
913
case
State
.Error:
916
case
State
.Interactive:
917
case
State
.PopNamespaceScope:
918
case
State
.ClearNsAttributes:
919
if (!InitReadElementContentAsBinary(
State
.ReadElementContentAsBase64))
923
goto case
State
.ReadElementContentAsBase64;
925
case
State
.ReadElementContentAsBase64:
937
_state =
State
.Interactive;
943
_state =
State
.EndOfFile;
952
case
State
.ReadContentAsBase64:
953
case
State
.ReadContentAsBinHex:
954
case
State
.ReadElementContentAsBinHex:
967
case
State
.Initial:
968
case
State
.EndOfFile:
969
case
State
.Closed:
970
case
State
.Error:
973
case
State
.ClearNsAttributes:
974
case
State
.PopNamespaceScope:
1020
case
State
.Interactive:
1021
_state =
State
.ReadContentAsBinHex;
1022
goto case
State
.ReadContentAsBinHex;
1024
case
State
.ReadContentAsBinHex:
1028
_state =
State
.Interactive;
1033
case
State
.ReadContentAsBase64:
1034
case
State
.ReadElementContentAsBase64:
1035
case
State
.ReadElementContentAsBinHex:
1048
case
State
.Initial:
1049
case
State
.EndOfFile:
1050
case
State
.Closed:
1051
case
State
.Error:
1054
case
State
.Interactive:
1055
case
State
.PopNamespaceScope:
1056
case
State
.ClearNsAttributes:
1057
if (!InitReadElementContentAsBinary(
State
.ReadElementContentAsBinHex))
1061
goto case
State
.ReadElementContentAsBinHex;
1062
case
State
.ReadElementContentAsBinHex:
1074
_state =
State
.Interactive;
1080
_state =
State
.EndOfFile;
1089
case
State
.ReadContentAsBase64:
1090
case
State
.ReadContentAsBinHex:
1091
case
State
.ReadElementContentAsBase64:
1112
case
State
.Initial:
1113
case
State
.EndOfFile:
1114
case
State
.Closed:
1115
case
State
.Error:
1118
case
State
.ClearNsAttributes:
1119
case
State
.PopNamespaceScope:
1142
goto case
State
.Interactive;
1144
case
State
.Interactive:
1147
case
State
.ReadElementContentAsBase64:
1148
case
State
.ReadElementContentAsBinHex:
1149
case
State
.ReadContentAsBase64:
1150
case
State
.ReadContentAsBinHex:
1289
_state =
State
.PopNamespaceScope;
1293
_state =
State
.PopNamespaceScope;
1338
Debug.Assert(_state ==
State
.ClearNsAttributes || _state ==
State
.Interactive || _state ==
State
.PopNamespaceScope);
1339
_state =
State
.ClearNsAttributes;
1373
private bool InitReadElementContentAsBinary(
State
binaryState)
1399
Debug.Assert(_state ==
State
.Interactive);
1406
Debug.Assert(_state ==
State
.ReadElementContentAsBase64 || _state ==
State
.ReadElementContentAsBinHex);
1409
if (_state ==
State
.ReadElementContentAsBase64)
1424
_state =
State
.Interactive;
1430
_state =
State
.EndOfFile;
1440
Debug.Assert(_state ==
State
.ReadContentAsBase64 || _state ==
State
.ReadContentAsBinHex);
1443
if (_state ==
State
.ReadContentAsBase64)
1452
_state =
State
.Interactive;
1458
_state =
State
.EndOfFile;
1470
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.Initial)));
1471
Debug.Assert(0 != (AttributeActiveStates & (1 << (int)
State
.Interactive)));
1472
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.Error)));
1473
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.EndOfFile)));
1474
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.Closed)));
1475
Debug.Assert(0 != (AttributeActiveStates & (1 << (int)
State
.PopNamespaceScope)));
1476
Debug.Assert(0 != (AttributeActiveStates & (1 << (int)
State
.ClearNsAttributes)));
1477
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.ReadElementContentAsBase64)));
1478
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.ReadElementContentAsBinHex)));
1479
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.ReadContentAsBase64)));
1480
Debug.Assert(0 == (AttributeActiveStates & (1 << (int)
State
.ReadContentAsBinHex)));
1491
Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)
State
.Initial)));
1492
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.Interactive)));
1493
Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)
State
.Error)));
1494
Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)
State
.EndOfFile)));
1495
Debug.Assert(0 == (NamespaceActiveStates & (1 << (int)
State
.Closed)));
1496
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.PopNamespaceScope)));
1497
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.ClearNsAttributes)));
1498
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.ReadElementContentAsBase64)));
1499
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.ReadElementContentAsBinHex)));
1500
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.ReadContentAsBase64)));
1501
Debug.Assert(0 != (NamespaceActiveStates & (1 << (int)
State
.ReadContentAsBinHex)));
1527
case
State
.Initial:
1528
case
State
.EndOfFile:
1529
case
State
.Closed:
1530
case
State
.Error:
1533
case
State
.Interactive:
1536
case
State
.PopNamespaceScope:
1537
case
State
.ClearNsAttributes:
1545
case
State
.ReadElementContentAsBase64:
1546
case
State
.ReadElementContentAsBinHex:
1547
case
State
.ReadContentAsBase64:
1548
case
State
.ReadContentAsBinHex:
1560
Debug.Assert(_state ==
State
.Interactive ||
1561
_state ==
State
.PopNamespaceScope ||
1562
_state ==
State
.ClearNsAttributes);
1572
_state =
State
.PopNamespaceScope;
System\Xml\Core\XmlSubtreeReaderAsync.cs (116)
32
case
State
.Initial:
34
_state =
State
.Interactive;
38
case
State
.Interactive:
48
_state =
State
.EndOfFile;
65
case
State
.EndOfFile:
66
case
State
.Closed:
67
case
State
.Error:
70
case
State
.PopNamespaceScope:
72
goto case
State
.ClearNsAttributes;
74
case
State
.ClearNsAttributes:
76
_state =
State
.Interactive;
77
goto case
State
.Interactive;
79
case
State
.ReadElementContentAsBase64:
80
case
State
.ReadElementContentAsBinHex:
87
case
State
.ReadContentAsBase64:
88
case
State
.ReadContentAsBinHex:
105
case
State
.Initial:
109
case
State
.Interactive:
130
_state =
State
.EndOfFile;
145
case
State
.Closed:
146
case
State
.EndOfFile:
149
case
State
.PopNamespaceScope:
151
goto case
State
.ClearNsAttributes;
153
case
State
.ClearNsAttributes:
155
_state =
State
.Interactive;
156
goto case
State
.Interactive;
158
case
State
.ReadElementContentAsBase64:
159
case
State
.ReadElementContentAsBinHex:
166
case
State
.ReadContentAsBase64:
167
case
State
.ReadContentAsBinHex:
174
case
State
.Error:
194
_state =
State
.Error;
210
_state =
State
.Error;
226
_state =
State
.Error;
235
case
State
.Initial:
236
case
State
.EndOfFile:
237
case
State
.Closed:
238
case
State
.Error:
241
case
State
.ClearNsAttributes:
242
case
State
.PopNamespaceScope:
288
case
State
.Interactive:
289
_state =
State
.ReadContentAsBase64;
290
goto case
State
.ReadContentAsBase64;
292
case
State
.ReadContentAsBase64:
296
_state =
State
.Interactive;
301
case
State
.ReadContentAsBinHex:
302
case
State
.ReadElementContentAsBase64:
303
case
State
.ReadElementContentAsBinHex:
316
case
State
.Initial:
317
case
State
.EndOfFile:
318
case
State
.Closed:
319
case
State
.Error:
322
case
State
.Interactive:
323
case
State
.PopNamespaceScope:
324
case
State
.ClearNsAttributes:
325
if (!await InitReadElementContentAsBinaryAsync(
State
.ReadElementContentAsBase64).ConfigureAwait(false))
329
goto case
State
.ReadElementContentAsBase64;
331
case
State
.ReadElementContentAsBase64:
343
_state =
State
.Interactive;
349
_state =
State
.EndOfFile;
358
case
State
.ReadContentAsBase64:
359
case
State
.ReadContentAsBinHex:
360
case
State
.ReadElementContentAsBinHex:
373
case
State
.Initial:
374
case
State
.EndOfFile:
375
case
State
.Closed:
376
case
State
.Error:
379
case
State
.ClearNsAttributes:
380
case
State
.PopNamespaceScope:
426
case
State
.Interactive:
427
_state =
State
.ReadContentAsBinHex;
428
goto case
State
.ReadContentAsBinHex;
430
case
State
.ReadContentAsBinHex:
434
_state =
State
.Interactive;
439
case
State
.ReadContentAsBase64:
440
case
State
.ReadElementContentAsBase64:
441
case
State
.ReadElementContentAsBinHex:
454
case
State
.Initial:
455
case
State
.EndOfFile:
456
case
State
.Closed:
457
case
State
.Error:
460
case
State
.Interactive:
461
case
State
.PopNamespaceScope:
462
case
State
.ClearNsAttributes:
463
if (!await InitReadElementContentAsBinaryAsync(
State
.ReadElementContentAsBinHex).ConfigureAwait(false))
467
goto case
State
.ReadElementContentAsBinHex;
468
case
State
.ReadElementContentAsBinHex:
480
_state =
State
.Interactive;
486
_state =
State
.EndOfFile;
495
case
State
.ReadContentAsBase64:
496
case
State
.ReadContentAsBinHex:
497
case
State
.ReadElementContentAsBase64:
510
case
State
.Initial:
511
case
State
.EndOfFile:
512
case
State
.Closed:
513
case
State
.Error:
516
case
State
.ClearNsAttributes:
517
case
State
.PopNamespaceScope:
540
goto case
State
.Interactive;
542
case
State
.Interactive:
545
case
State
.ReadElementContentAsBase64:
546
case
State
.ReadElementContentAsBinHex:
547
case
State
.ReadContentAsBase64:
548
case
State
.ReadContentAsBinHex:
557
private async Task<bool> InitReadElementContentAsBinaryAsync(
State
binaryState)
583
Debug.Assert(_state ==
State
.Interactive);
590
Debug.Assert(_state ==
State
.ReadElementContentAsBase64 || _state ==
State
.ReadElementContentAsBinHex);
593
if (_state ==
State
.ReadElementContentAsBase64)
608
_state =
State
.Interactive;
614
_state =
State
.EndOfFile;
624
Debug.Assert(_state ==
State
.ReadContentAsBase64 || _state ==
State
.ReadContentAsBinHex);
627
if (_state ==
State
.ReadContentAsBase64)
636
_state =
State
.Interactive;
642
_state =
State
.EndOfFile;