HtmlAgilityPack.HtmlNodeNavigator.IsSamePosition C# (CSharp) Method

IsSamePosition() public method

Determines whether the current HtmlNavigator is at the same position as the specified HtmlNavigator.
public IsSamePosition ( XPathNavigator other ) : bool
other System.Xml.XPath.XPathNavigator The HtmlNavigator that you want to compare against.
return bool
        public override bool IsSamePosition(XPathNavigator other)
        {
            HtmlNodeNavigator nav = other as HtmlNodeNavigator;
            if (nav == null)
            {
                InternalTrace(">false");
                return false;
            }
            InternalTrace(">" + (nav._currentnode == _currentnode));
            return (nav._currentnode == _currentnode);
        }