System.Xml.DocumentXPathNavigator.IsSamePosition C# (CSharp) Method

IsSamePosition() public method

public IsSamePosition ( XPathNavigator other ) : bool
other System.Xml.XPath.XPathNavigator
return bool
        public override bool IsSamePosition(XPathNavigator other) {
            DocumentXPathNavigator that = other as DocumentXPathNavigator;
            if (that != null) {
                this.CalibrateText();
                that.CalibrateText();

                return this.source == that.source
                       && this.namespaceParent == that.namespaceParent;
            }
            return false;
        }