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