268 references to State
System.Xml (268)
System\Xml\Core\XmlSubtreeReader.cs (152)
65
State
state;
96
state =
State
.Initial;
175
return state ==
State
.EndOfFile || state ==
State
.Closed;
185
if ( (int)state <= (int)
State
.Closed ) {
376
case
State
.Initial:
378
state =
State
.Interactive;
382
case
State
.Interactive:
390
state =
State
.EndOfFile;
405
case
State
.EndOfFile:
406
case
State
.Closed:
407
case
State
.Error:
410
case
State
.PopNamespaceScope:
412
goto case
State
.ClearNsAttributes;
414
case
State
.ClearNsAttributes:
416
state =
State
.Interactive;
417
goto case
State
.Interactive;
419
case
State
.ReadElementContentAsBase64:
420
case
State
.ReadElementContentAsBinHex:
426
case
State
.ReadContentAsBase64:
427
case
State
.ReadContentAsBinHex:
440
if ( state ==
State
.Closed) {
445
if (state !=
State
.EndOfFile) {
463
state =
State
.Closed;
470
case
State
.Initial:
474
case
State
.Interactive:
491
state =
State
.EndOfFile;
505
case
State
.Closed:
506
case
State
.EndOfFile:
509
case
State
.PopNamespaceScope:
511
goto case
State
.ClearNsAttributes;
513
case
State
.ClearNsAttributes:
515
state =
State
.Interactive;
516
goto case
State
.Interactive;
518
case
State
.ReadElementContentAsBase64:
519
case
State
.ReadElementContentAsBinHex:
525
case
State
.ReadContentAsBase64:
526
case
State
.ReadContentAsBinHex:
532
case
State
.Error:
549
state =
State
.Error;
562
state =
State
.Error;
575
state =
State
.Error;
588
state =
State
.Error;
601
state =
State
.Error;
614
state =
State
.Error;
627
state =
State
.Error;
640
state =
State
.Error;
653
state =
State
.Error;
666
state =
State
.Error;
679
case
State
.Initial:
680
case
State
.EndOfFile:
681
case
State
.Closed:
682
case
State
.Error:
685
case
State
.ClearNsAttributes:
686
case
State
.PopNamespaceScope:
723
case
State
.Interactive:
724
state =
State
.ReadContentAsBase64;
725
goto case
State
.ReadContentAsBase64;
727
case
State
.ReadContentAsBase64:
730
state =
State
.Interactive;
735
case
State
.ReadContentAsBinHex:
736
case
State
.ReadElementContentAsBase64:
737
case
State
.ReadElementContentAsBinHex:
748
case
State
.Initial:
749
case
State
.EndOfFile:
750
case
State
.Closed:
751
case
State
.Error:
754
case
State
.Interactive:
755
case
State
.PopNamespaceScope:
756
case
State
.ClearNsAttributes:
757
if ( !InitReadElementContentAsBinary(
State
.ReadElementContentAsBase64 ) ) {
760
goto case
State
.ReadElementContentAsBase64;
762
case
State
.ReadElementContentAsBase64:
772
state =
State
.Interactive;
777
state =
State
.EndOfFile;
785
case
State
.ReadContentAsBase64:
786
case
State
.ReadContentAsBinHex:
787
case
State
.ReadElementContentAsBinHex:
798
case
State
.Initial:
799
case
State
.EndOfFile:
800
case
State
.Closed:
801
case
State
.Error:
804
case
State
.ClearNsAttributes:
805
case
State
.PopNamespaceScope:
841
case
State
.Interactive:
842
state =
State
.ReadContentAsBinHex;
843
goto case
State
.ReadContentAsBinHex;
845
case
State
.ReadContentAsBinHex:
848
state =
State
.Interactive;
853
case
State
.ReadContentAsBase64:
854
case
State
.ReadElementContentAsBase64:
855
case
State
.ReadElementContentAsBinHex:
866
case
State
.Initial:
867
case
State
.EndOfFile:
868
case
State
.Closed:
869
case
State
.Error:
872
case
State
.Interactive:
873
case
State
.PopNamespaceScope:
874
case
State
.ClearNsAttributes:
875
if ( !InitReadElementContentAsBinary(
State
.ReadElementContentAsBinHex ) ) {
878
goto case
State
.ReadElementContentAsBinHex;
879
case
State
.ReadElementContentAsBinHex:
889
state =
State
.Interactive;
894
state =
State
.EndOfFile;
902
case
State
.ReadContentAsBase64:
903
case
State
.ReadContentAsBinHex:
904
case
State
.ReadElementContentAsBase64:
921
case
State
.Initial:
922
case
State
.EndOfFile:
923
case
State
.Closed:
924
case
State
.Error:
927
case
State
.ClearNsAttributes:
928
case
State
.PopNamespaceScope:
948
goto case
State
.Interactive;
950
case
State
.Interactive:
953
case
State
.ReadElementContentAsBase64:
954
case
State
.ReadElementContentAsBinHex:
955
case
State
.ReadContentAsBase64:
956
case
State
.ReadContentAsBinHex:
1070
state =
State
.PopNamespaceScope;
1074
state =
State
.PopNamespaceScope;
1102
Debug.Assert( state ==
State
.ClearNsAttributes || state ==
State
.Interactive || state ==
State
.PopNamespaceScope );
1103
state =
State
.ClearNsAttributes;
1132
private bool InitReadElementContentAsBinary(
State
binaryState ) {
1154
Debug.Assert( state ==
State
.Interactive );
1160
Debug.Assert( state ==
State
.ReadElementContentAsBase64 || state ==
State
.ReadElementContentAsBinHex );
1163
if ( state ==
State
.ReadElementContentAsBase64 ) {
1175
state =
State
.Interactive;
1180
state =
State
.EndOfFile;
1189
Debug.Assert( state ==
State
.ReadContentAsBase64 || state ==
State
.ReadContentAsBinHex );
1192
if ( state ==
State
.ReadContentAsBase64 ) {
1199
state =
State
.Interactive;
1204
state =
State
.EndOfFile;
1265
case
State
.Initial:
1266
case
State
.EndOfFile:
1267
case
State
.Closed:
1268
case
State
.Error:
1271
case
State
.Interactive:
1274
case
State
.PopNamespaceScope:
1275
case
State
.ClearNsAttributes:
1283
case
State
.ReadElementContentAsBase64:
1284
case
State
.ReadElementContentAsBinHex:
1285
case
State
.ReadContentAsBase64:
1286
case
State
.ReadContentAsBinHex:
1297
Debug.Assert( state ==
State
.Interactive ||
1298
state ==
State
.PopNamespaceScope ||
1299
state ==
State
.ClearNsAttributes );
1308
state =
State
.PopNamespaceScope;
System\Xml\Core\XmlSubtreeReaderAsync.cs (116)
26
case
State
.Initial:
28
state =
State
.Interactive;
32
case
State
.Interactive:
40
state =
State
.EndOfFile;
55
case
State
.EndOfFile:
56
case
State
.Closed:
57
case
State
.Error:
60
case
State
.PopNamespaceScope:
62
goto case
State
.ClearNsAttributes;
64
case
State
.ClearNsAttributes:
66
state =
State
.Interactive;
67
goto case
State
.Interactive;
69
case
State
.ReadElementContentAsBase64:
70
case
State
.ReadElementContentAsBinHex:
76
case
State
.ReadContentAsBase64:
77
case
State
.ReadContentAsBinHex:
91
case
State
.Initial:
95
case
State
.Interactive:
112
state =
State
.EndOfFile;
126
case
State
.Closed:
127
case
State
.EndOfFile:
130
case
State
.PopNamespaceScope:
132
goto case
State
.ClearNsAttributes;
134
case
State
.ClearNsAttributes:
136
state =
State
.Interactive;
137
goto case
State
.Interactive;
139
case
State
.ReadElementContentAsBase64:
140
case
State
.ReadElementContentAsBinHex:
146
case
State
.ReadContentAsBase64:
147
case
State
.ReadContentAsBinHex:
153
case
State
.Error:
170
state =
State
.Error;
183
state =
State
.Error;
196
state =
State
.Error;
203
case
State
.Initial:
204
case
State
.EndOfFile:
205
case
State
.Closed:
206
case
State
.Error:
209
case
State
.ClearNsAttributes:
210
case
State
.PopNamespaceScope:
247
case
State
.Interactive:
248
state =
State
.ReadContentAsBase64;
249
goto case
State
.ReadContentAsBase64;
251
case
State
.ReadContentAsBase64:
254
state =
State
.Interactive;
259
case
State
.ReadContentAsBinHex:
260
case
State
.ReadElementContentAsBase64:
261
case
State
.ReadElementContentAsBinHex:
272
case
State
.Initial:
273
case
State
.EndOfFile:
274
case
State
.Closed:
275
case
State
.Error:
278
case
State
.Interactive:
279
case
State
.PopNamespaceScope:
280
case
State
.ClearNsAttributes:
281
if ( !await InitReadElementContentAsBinaryAsync(
State
.ReadElementContentAsBase64 ).ConfigureAwait(false) ) {
284
goto case
State
.ReadElementContentAsBase64;
286
case
State
.ReadElementContentAsBase64:
296
state =
State
.Interactive;
301
state =
State
.EndOfFile;
309
case
State
.ReadContentAsBase64:
310
case
State
.ReadContentAsBinHex:
311
case
State
.ReadElementContentAsBinHex:
322
case
State
.Initial:
323
case
State
.EndOfFile:
324
case
State
.Closed:
325
case
State
.Error:
328
case
State
.ClearNsAttributes:
329
case
State
.PopNamespaceScope:
365
case
State
.Interactive:
366
state =
State
.ReadContentAsBinHex;
367
goto case
State
.ReadContentAsBinHex;
369
case
State
.ReadContentAsBinHex:
372
state =
State
.Interactive;
377
case
State
.ReadContentAsBase64:
378
case
State
.ReadElementContentAsBase64:
379
case
State
.ReadElementContentAsBinHex:
390
case
State
.Initial:
391
case
State
.EndOfFile:
392
case
State
.Closed:
393
case
State
.Error:
396
case
State
.Interactive:
397
case
State
.PopNamespaceScope:
398
case
State
.ClearNsAttributes:
399
if ( !await InitReadElementContentAsBinaryAsync(
State
.ReadElementContentAsBinHex ).ConfigureAwait(false) ) {
402
goto case
State
.ReadElementContentAsBinHex;
403
case
State
.ReadElementContentAsBinHex:
413
state =
State
.Interactive;
418
state =
State
.EndOfFile;
426
case
State
.ReadContentAsBase64:
427
case
State
.ReadContentAsBinHex:
428
case
State
.ReadElementContentAsBase64:
439
case
State
.Initial:
440
case
State
.EndOfFile:
441
case
State
.Closed:
442
case
State
.Error:
445
case
State
.ClearNsAttributes:
446
case
State
.PopNamespaceScope:
466
goto case
State
.Interactive;
468
case
State
.Interactive:
471
case
State
.ReadElementContentAsBase64:
472
case
State
.ReadElementContentAsBinHex:
473
case
State
.ReadContentAsBase64:
474
case
State
.ReadContentAsBinHex:
483
private async Task< bool > InitReadElementContentAsBinaryAsync(
State
binaryState ) {
505
Debug.Assert( state ==
State
.Interactive );
511
Debug.Assert( state ==
State
.ReadElementContentAsBase64 || state ==
State
.ReadElementContentAsBinHex );
514
if ( state ==
State
.ReadElementContentAsBase64 ) {
526
state =
State
.Interactive;
531
state =
State
.EndOfFile;
540
Debug.Assert( state ==
State
.ReadContentAsBase64 || state ==
State
.ReadContentAsBinHex );
543
if ( state ==
State
.ReadContentAsBase64 ) {
550
state =
State
.Interactive;
555
state =
State
.EndOfFile;