public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != this.GetType()) { return(false); } Rent rent = (Rent)obj; return(this.GetHashCode() == rent.GetHashCode()); }