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