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

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

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

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

            return(navigator.currentNode.Equals(this.currentNode));
        }
예제 #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);
        }