System.Xml.DocumentXPathNavigator.MoveToChild C# (CSharp) Méthode

MoveToChild() public méthode

public MoveToChild ( XPathNodeType type ) : bool
type XPathNodeType
Résultat bool
        public override bool MoveToChild(XPathNodeType type) {
            if (source.NodeType == XmlNodeType.Attribute) {
                return false;
            }

            XmlNode child = FirstChild(source);
            if (child != null) {
                int mask = GetContentKindMask(type);
                if (mask == 0) {
                    return false;
                }
                do {
                    if (((1 << (int)child.XPNodeType) & mask) != 0) {
                        source = child;
                        return true;
                    }
                    child = NextSibling(child);
                }
                while (child != null);
            }
            return false;
        }

Same methods

DocumentXPathNavigator::MoveToChild ( string localName, string namespaceUri ) : bool