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