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