Exemplo n.º 1
0
 /// <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 (HostPrefix != null)
         {
             hashCode = hashCode * 59 + HostPrefix.GetHashCode();
         }
         if (NotifyOnabort != null)
         {
             hashCode = hashCode * 59 + NotifyOnabort.GetHashCode();
         }
         if (NotifyOncomplete != null)
         {
             hashCode = hashCode * 59 + NotifyOncomplete.GetHashCode();
         }
         if (NotifyOncontainercomplete != null)
         {
             hashCode = hashCode * 59 + NotifyOncontainercomplete.GetHashCode();
         }
         if (NotifyUseronly != null)
         {
             hashCode = hashCode * 59 + NotifyUseronly.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ComDayCqWorkflowImplEmailEMailNotificationServiceProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqWorkflowImplEmailEMailNotificationServiceProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqWorkflowImplEmailEMailNotificationServiceProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FromAddress == other.FromAddress ||
                     FromAddress != null &&
                     FromAddress.Equals(other.FromAddress)
                     ) &&
                 (
                     HostPrefix == other.HostPrefix ||
                     HostPrefix != null &&
                     HostPrefix.Equals(other.HostPrefix)
                 ) &&
                 (
                     NotifyOnabort == other.NotifyOnabort ||
                     NotifyOnabort != null &&
                     NotifyOnabort.Equals(other.NotifyOnabort)
                 ) &&
                 (
                     NotifyOncomplete == other.NotifyOncomplete ||
                     NotifyOncomplete != null &&
                     NotifyOncomplete.Equals(other.NotifyOncomplete)
                 ) &&
                 (
                     NotifyOncontainercomplete == other.NotifyOncontainercomplete ||
                     NotifyOncontainercomplete != null &&
                     NotifyOncontainercomplete.Equals(other.NotifyOncontainercomplete)
                 ) &&
                 (
                     NotifyUseronly == other.NotifyUseronly ||
                     NotifyUseronly != null &&
                     NotifyUseronly.Equals(other.NotifyUseronly)
                 ));
        }