Ejemplo 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 (ExternalizerDomains != null)
         {
             hashCode = hashCode * 59 + ExternalizerDomains.GetHashCode();
         }
         if (ExternalizerHost != null)
         {
             hashCode = hashCode * 59 + ExternalizerHost.GetHashCode();
         }
         if (ExternalizerContextpath != null)
         {
             hashCode = hashCode * 59 + ExternalizerContextpath.GetHashCode();
         }
         if (ExternalizerEncodedpath != null)
         {
             hashCode = hashCode * 59 + ExternalizerEncodedpath.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if ComDayCqCommonsImplExternalizerImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqCommonsImplExternalizerImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqCommonsImplExternalizerImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ExternalizerDomains == other.ExternalizerDomains ||
                     ExternalizerDomains != null &&
                     ExternalizerDomains.Equals(other.ExternalizerDomains)
                     ) &&
                 (
                     ExternalizerHost == other.ExternalizerHost ||
                     ExternalizerHost != null &&
                     ExternalizerHost.Equals(other.ExternalizerHost)
                 ) &&
                 (
                     ExternalizerContextpath == other.ExternalizerContextpath ||
                     ExternalizerContextpath != null &&
                     ExternalizerContextpath.Equals(other.ExternalizerContextpath)
                 ) &&
                 (
                     ExternalizerEncodedpath == other.ExternalizerEncodedpath ||
                     ExternalizerEncodedpath != null &&
                     ExternalizerEncodedpath.Equals(other.ExternalizerEncodedpath)
                 ));
        }