46 references to Length
System.Private.Xml (46)
System\Xml\Schema\DtdValidator.cs (1)
517if (_validationStack.Length > 1)
System\Xml\Schema\XdrBuilder.cs (3)
602_StateHistory[_StateHistory.Length - 1] = _CurState; 617_GroupStack[_GroupStack.Length - 1] = GroupContent.Copy(_GroupDef); 1024ad._Global = (builder._StateHistory.Length == 2);
System\Xml\Schema\XdrValidator.cs (1)
669if (_validationStack.Length > 1)
System\Xml\Schema\XmlSchemaValidator.cs (16)
236while (_validationStack.Length > 1) 498ValidatorState toState = _validationStack.Length > 1 ? ValidatorState.Attribute : ValidatorState.TopLevelAttribute; 741ValidatorState toState = _validationStack.Length > 1 ? ValidatorState.Text : ValidatorState.TopLevelTextOrWS; 820ValidatorState toState = _validationStack.Length > 1 ? ValidatorState.Whitespace : ValidatorState.TopLevelTextOrWS; 887if (_validationStack.Length <= 1) 920if (_validationStack.Length > 1) 1169if (_validationStack.Length <= 1) 1547Debug.Assert(_validationStack.Length > 1); 1550if (_startIDConstraint == _validationStack.Length) 2175for (int level = _validationStack.Length - 1; level >= ((_startIDConstraint >= 0) ? _startIDConstraint : _validationStack.Length - 1); level--) 2214_startIDConstraint = _validationStack.Length - 1; 2224for (int i = _startIDConstraint; i < _validationStack.Length; i++) 2279for (int ci = _startIDConstraint; ci < _validationStack.Length; ci++) 2325for (int ci = _validationStack.Length - 1; ci >= _startIDConstraint; ci--) 2448ConstraintStruct[]? vcs = ((ValidationState)(_validationStack[_validationStack.Length - 1])).Constr;
System\Xml\Schema\XsdBuilder.cs (2)
815_stateHistory[_stateHistory.Length - 1] = _currentEntry; 838get { return ((XsdEntry)_stateHistory[_stateHistory.Length - 1]).Name; }
System\Xml\Schema\XsdValidator.cs (9)
796if (_validationStack.Length > 1) 799if (_startIDConstraint == _validationStack.Length) 865for (int level = _validationStack.Length - 1; level >= ((_startIDConstraint >= 0) ? _startIDConstraint : _validationStack.Length - 1); level--) 904_startIDConstraint = _validationStack.Length - 1; 910for (int i = _startIDConstraint; i < _validationStack.Length; i++) 965for (int ci = _startIDConstraint; ci < _validationStack.Length; ci++) 1019for (int ci = _validationStack.Length - 1; ci >= _startIDConstraint; ci--) 1128ConstraintStruct[] vcs = ((ValidationState)(_validationStack[_validationStack.Length - 1])).Constr!;
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (3)
133for (int i = _elementScopesStack.Length - 1; i >= 0; i--) 141thisScope = (i == _elementScopesStack.Length - 1); 153for (int i = _elementScopesStack.Length - 1; 0 <= i; i--)
System\Xml\Xsl\XsltOld\Processor.cs (11)
1005int saveStackSize = _actionStack.Length; 1016} while (saveStackSize < _actionStack.Length); 1017Debug.Assert(saveStackSize == _actionStack.Length); 1030Debug.Assert(1 < _actionStack.Length); 1031ActionFrame parentFrame = (ActionFrame)_actionStack[_actionStack.Length - 2]; 1037ActionFrame frame = (ActionFrame)_actionStack[_actionStack.Length - 1]; 1043Debug.Assert(2 < _actionStack.Length); 1044ActionFrame parentFrame = (ActionFrame)_actionStack[_actionStack.Length - 3]; 1086Debug.Assert(2 <= _debuggerStack!.Length); 1087return ((DebuggerFrame)_debuggerStack[_debuggerStack.Length - 2]!).currentMode; 1093((DebuggerFrame)_debuggerStack![_debuggerStack.Length - 1]).currentMode = mode;