/// <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 (FeeRate != null) { hashCode = hashCode * 59 + FeeRate.GetHashCode(); } if (InstalmentRate != null) { hashCode = hashCode * 59 + InstalmentRate.GetHashCode(); } if (InterestRates != null) { hashCode = hashCode * 59 + InterestRates.GetHashCode(); } return(hashCode); } }