System.Xml.XsdValidatingReader.MoveToNextAttribute C# (CSharp) Méthode

MoveToNextAttribute() public méthode

public MoveToNextAttribute ( ) : bool
Résultat bool
        public override bool MoveToNextAttribute()
        {
            if (_currentAttrIndex + 1 < _coreReaderAttributeCount)
            {
                bool moveTo = _coreReader.MoveToNextAttribute();
                Debug.Assert(moveTo);
                _currentAttrIndex++;
                if (_inlineSchemaParser == null)
                {
                    _attributePSVI = _attributePSVINodes[_currentAttrIndex];
                }
                else
                {
                    _attributePSVI = null;
                }
                _validationState = ValidatingReaderState.OnAttribute;
                goto Found;
            }
            else if (_currentAttrIndex + 1 < _attributeCount)
            { //default attribute
                int defaultIndex = ++_currentAttrIndex - _coreReaderAttributeCount;
                _cachedNode = (ValidatingReaderNodeData)_defaultAttributes[defaultIndex];
                _attributePSVI = _cachedNode.AttInfo;
                _validationState = ValidatingReaderState.OnDefaultAttribute;
                goto Found;
            }
            return false;
        Found:
            if (_validationState == ValidatingReaderState.OnReadBinaryContent)
            {
                _readBinaryHelper.Finish();
                _validationState = _savedState;
            }
            return true;
        }
XsdValidatingReader