/// <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 (AuthorisationId != null) { hashCode = hashCode * 59 + AuthorisationId.GetHashCode(); } if (BankAccountBban != null) { hashCode = hashCode * 59 + BankAccountBban.GetHashCode(); } if (TransactionType != null) { hashCode = hashCode * 59 + TransactionType.GetHashCode(); } return(hashCode); } }
/// <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 (BankAccountBban != null) { hashCode = hashCode * 59 + BankAccountBban.GetHashCode(); } if (BankAccountIban != null) { hashCode = hashCode * 59 + BankAccountIban.GetHashCode(); } if (CountryCode != null) { hashCode = hashCode * 59 + CountryCode.GetHashCode(); } return(hashCode); } }