System.Xml.XmlBaseReader.CheckDeclAttribute C# (CSharp) Méthode

CheckDeclAttribute() private méthode

private CheckDeclAttribute ( int index, string localName, string value, bool checkLower, string valueSR ) : bool
index int
localName string
value string
checkLower bool
valueSR string
Résultat bool
        private bool CheckDeclAttribute(int index, string localName, string value, bool checkLower, string valueSR)
        {
            XmlAttributeNode node = _attributeNodes[index];
            if (!node.Prefix.IsEmpty)
                XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlMalformedDecl)));

            if (node.LocalName != localName)
                return false;

            if (value != null && !node.Value.Equals2(value, checkLower))
                XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(valueSR)));

            return true;
        }
        protected XmlCommentNode MoveToComment()