/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (LodgementDate != null) { hashCode = hashCode * 59 + LodgementDate.GetHashCode(); } if (MaturityDate != null) { hashCode = hashCode * 59 + MaturityDate.GetHashCode(); } if (MaturityAmount != null) { hashCode = hashCode * 59 + MaturityAmount.GetHashCode(); } if (MaturityCurrency != null) { hashCode = hashCode * 59 + MaturityCurrency.GetHashCode(); } if (MaturityInstructions != null) { hashCode = hashCode * 59 + MaturityInstructions.GetHashCode(); } return(hashCode); } }