public bool IsDescendantOf(Node <Element> rhs) { if (null == mParent) { return(false); } if (rhs == mParent) { return(true); } return(mParent.IsDescendantOf(rhs)); }