Example #1
0
        public XdmNodeNavigator(XdmNodeNavigator other)
        {
            if (other == null) throw new ArgumentNullException("other");

             this.currentNode = other.currentNode;
             this.nameTable = other.nameTable;
        }
Example #2
0
        public XdmNodeNavigator(XdmNodeNavigator other)
        {
            if (other == null)
            {
                throw new ArgumentNullException("other");
            }

            this.currentNode = other.currentNode;
            this.nameTable   = other.nameTable;
        }
Example #3
0
        public override bool IsSamePosition(XPathNavigator other)
        {
            XdmNodeNavigator navigator = other as XdmNodeNavigator;

            if (navigator == null)
            {
                return(false);
            }

            return(navigator.currentNode.Equals(this.currentNode));
        }
Example #4
0
        public override bool MoveTo(XPathNavigator other)
        {
            XdmNodeNavigator navigator = other as XdmNodeNavigator;

            if ((navigator != null) && navigator.currentNode.Root.Equals(this.currentNode.Root))
            {
                this.currentNode     = navigator.currentNode;
                this.currentSequence = null;
                return(true);
            }
            return(false);
        }