7 writes to currentState
System.Xml (7)
System\Xml\Schema\XmlSchemaValidator.cs (7)
205
currentState
= ValidatorState.None;
340
currentState
= ValidatorState.Start;
354
currentState
= ValidatorState.Start;
546
currentState
= ValidatorState.Start;
821
currentState
= ValidatorState.SkipToEndElement;
888
currentState
= ValidatorState.Attribute;
1750
currentState
= toState;
16 references to currentState
System.Xml (16)
System\Xml\Schema\XmlSchemaValidator.cs (16)
337
if (
currentState
!= ValidatorState.None &&
currentState
!= ValidatorState.Finish) {
338
throw new InvalidOperationException(Res.GetString(Res.Sch_InvalidStateTransition, new string[] { MethodNames[(int)
currentState
], MethodNames[(int)ValidatorState.Start] }));
345
if (
currentState
!= ValidatorState.None &&
currentState
!= ValidatorState.Finish) {
346
throw new InvalidOperationException(Res.GetString(Res.Sch_InvalidStateTransition, new string[] { MethodNames[(int)
currentState
], MethodNames[(int)ValidatorState.Start] }));
492
XmlSchemaObject pvtAttribute =
currentState
== ValidatorState.TopLevelAttribute ? partialValidationType : null;
545
Debug.Assert(
currentState
== ValidatorState.TopLevelAttribute); //Re-set state back to start on error with partial validation type
834
if (
currentState
== ValidatorState.Start ||
currentState
== ValidatorState.TopLevelTextOrWS) { //Right after initialize
861
if (
currentState
== ValidatorState.Element ||
currentState
== ValidatorState.Attribute) {
876
else if (
currentState
== ValidatorState.Start) {
1744
if (!ValidStates[(int)
currentState
,(int)toState]) {
1745
if (
currentState
== ValidatorState.None) {
1748
throw new InvalidOperationException(Res.GetString(Res.Sch_InvalidStateTransition, new string[] { MethodNames[(int)
currentState
], methodName }));