public override bool Equals(object other) {
XPathNodeInfoAtom that = other as XPathNodeInfoAtom;
Debug.Assert(that != null);
Debug.Assert((object) this.doc == (object) that.doc);
Debug.Assert(this.pageInfo == null);
// Assume that name parts are atomized
if (this.GetHashCode() == that.GetHashCode()) {
if ((object) this.localName == (object) that.localName &&
(object) this.pageSibling == (object) that.pageSibling &&
(object) this.namespaceUri == (object) that.namespaceUri &&
(object) this.pageParent == (object) that.pageParent &&
(object) this.pageSimilar == (object) that.pageSimilar &&
(object) this.prefix == (object) that.prefix &&
(object) this.baseUri == (object) that.baseUri &&
this.lineNumBase == that.lineNumBase &&
this.linePosBase == that.linePosBase) {
return true;
}
}
return false;
}