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