// override object.Equals public override bool Equals(object obj) { // // See the full list of guidelines at // http://go.microsoft.com/fwlink/?LinkID=85237 // and also the guidance for operator== at // http://go.microsoft.com/fwlink/?LinkId=85238 // if (obj == null || GetType() != obj.GetType()) { return(false); } ItemBase other = (ItemBase)obj; return(this.GetHashCode() == other.GetHashCode()); }
public override int GetHashCode() { return(_type.GetHashCode() ^ _document.GetHashCode() ^ _itemBase.GetHashCode()); }