public override bool MoveToFirstAttribute() { XPathNode[] pageCurrent = this.pageCurrent; int idxCurrent = this.idxCurrent; if (XPathNodeHelper.GetFirstAttribute(ref this.pageCurrent, ref this.idxCurrent)) { this.pageParent = pageCurrent; this.idxParent = idxCurrent; return(true); } return(false); }
/// <summary> /// Position the navigator on the first attribute of the current node and return true. If no attributes /// can be found, return false. /// </summary> public override bool MoveToFirstAttribute() { XPathNode[] page = _pageCurrent; int idx = _idxCurrent; if (XPathNodeHelper.GetFirstAttribute(ref _pageCurrent, ref _idxCurrent)) { // Save element parent in order to make node-order comparison simpler _pageParent = page; _idxParent = idx; return(true); } return(false); }