HtmlAgilityPack.HtmlNodeNavigator.MoveToFirst C# (CSharp) Method

MoveToFirst() public method

Moves to the first sibling of the current node.
public MoveToFirst ( ) : bool
return bool
        public override bool MoveToFirst()
        {
            if (_currentnode.ParentNode == null)
            {
                InternalTrace(">false");
                return false;
            }
            if (_currentnode.ParentNode.FirstChild == null)
            {
                InternalTrace(">false");
                return false;
            }
            _currentnode = _currentnode.ParentNode.FirstChild;
            InternalTrace(">true");
            return true;
        }