/// <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 (BoletoBancarioRequiredness != null) { hashCode = hashCode * 59 + BoletoBancarioRequiredness.GetHashCode(); } if (EmailAddress != null) { hashCode = hashCode * 59 + EmailAddress.GetHashCode(); } if (ExpirationDate != null) { hashCode = hashCode * 59 + ExpirationDate.GetHashCode(); } if (FixedList != null) { hashCode = hashCode * 59 + FixedList.GetHashCode(); } if (Iban != null) { hashCode = hashCode * 59 + Iban.GetHashCode(); } if (Length != null) { hashCode = hashCode * 59 + Length.GetHashCode(); } if (Luhn != null) { hashCode = hashCode * 59 + Luhn.GetHashCode(); } if (Range != null) { hashCode = hashCode * 59 + Range.GetHashCode(); } if (RegularExpression != null) { hashCode = hashCode * 59 + RegularExpression.GetHashCode(); } if (TermsAndConditions != null) { hashCode = hashCode * 59 + TermsAndConditions.GetHashCode(); } return(hashCode); } }