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

CheckStandalone() private méthode

private CheckStandalone ( int attr ) : bool
attr int
Résultat bool
        private bool CheckStandalone(int attr)
        {
            XmlAttributeNode node = _attributeNodes[attr];
            if (!node.Prefix.IsEmpty)
                XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlMalformedDecl)));

            if (node.LocalName != "standalone")
                return false;

            if (!node.Value.Equals2("yes", false) && !node.Value.Equals2("no", false))
                XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.Format(SR.XmlInvalidStandalone)));

            return true;
        }