コード例 #1
0
        public override XPathNavigator Clone()
        {
            NavigableDocument other = new NavigableDocument();

            other.document = document;
            other.MoveTo(this);
            return(other);
        }
コード例 #2
0
        public override bool MoveTo(XPathNavigator other)
        {
            NavigableDocument o = other as NavigableDocument;

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

            element = new ElementNode(o.element);

            if (o.attrs != null)
            {
                attrs = new AttributeNodes(o.attrs);
            }
            return(true);
        }
コード例 #3
0
        public override bool IsSamePosition(XPathNavigator other)
        {
            NavigableDocument o = other as NavigableDocument;

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

            if (!document.Equals(o.document) || !element.Equals(o.element))
            {
                return(false);
            }

            if (o.attrs == null && attrs == null)
            {
                return(true);
            }

            return(attrs.Equals(o.attrs));
        }
コード例 #4
0
ファイル: NavigableDocument.cs プロジェクト: virtix/webdriver
 public override XPathNavigator Clone()
 {
     NavigableDocument other = new NavigableDocument();
     other.document = document;
     other.MoveTo(this);
     return other;
 }