/// <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 (OverviewUri != null) { hashCode = hashCode * 59 + OverviewUri.GetHashCode(); } if (TermsUri != null) { hashCode = hashCode * 59 + TermsUri.GetHashCode(); } if (EligibilityUri != null) { hashCode = hashCode * 59 + EligibilityUri.GetHashCode(); } if (FeesAndPricingUri != null) { hashCode = hashCode * 59 + FeesAndPricingUri.GetHashCode(); } if (BundleUri != null) { hashCode = hashCode * 59 + BundleUri.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if BankingProductAdditionalInformation instances are equal /// </summary> /// <param name="other">Instance of BankingProductAdditionalInformation to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingProductAdditionalInformation other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OverviewUri == other.OverviewUri || OverviewUri != null && OverviewUri.Equals(other.OverviewUri) ) && ( TermsUri == other.TermsUri || TermsUri != null && TermsUri.Equals(other.TermsUri) ) && ( EligibilityUri == other.EligibilityUri || EligibilityUri != null && EligibilityUri.Equals(other.EligibilityUri) ) && ( FeesAndPricingUri == other.FeesAndPricingUri || FeesAndPricingUri != null && FeesAndPricingUri.Equals(other.FeesAndPricingUri) ) && ( BundleUri == other.BundleUri || BundleUri != null && BundleUri.Equals(other.BundleUri) )); }