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 (LinkExpiredPrefix != null)
         {
             hashCode = hashCode * 59 + LinkExpiredPrefix.GetHashCode();
         }
         if (LinkExpiredRemove != null)
         {
             hashCode = hashCode * 59 + LinkExpiredRemove.GetHashCode();
         }
         if (LinkExpiredSuffix != null)
         {
             hashCode = hashCode * 59 + LinkExpiredSuffix.GetHashCode();
         }
         if (LinkInvalidPrefix != null)
         {
             hashCode = hashCode * 59 + LinkInvalidPrefix.GetHashCode();
         }
         if (LinkInvalidRemove != null)
         {
             hashCode = hashCode * 59 + LinkInvalidRemove.GetHashCode();
         }
         if (LinkInvalidSuffix != null)
         {
             hashCode = hashCode * 59 + LinkInvalidSuffix.GetHashCode();
         }
         if (LinkPredatedPrefix != null)
         {
             hashCode = hashCode * 59 + LinkPredatedPrefix.GetHashCode();
         }
         if (LinkPredatedRemove != null)
         {
             hashCode = hashCode * 59 + LinkPredatedRemove.GetHashCode();
         }
         if (LinkPredatedSuffix != null)
         {
             hashCode = hashCode * 59 + LinkPredatedSuffix.GetHashCode();
         }
         if (LinkWcmmodes != null)
         {
             hashCode = hashCode * 59 + LinkWcmmodes.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ComDayCqWcmCoreImplLinkCheckerConfigurationFactoryImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqWcmCoreImplLinkCheckerConfigurationFactoryImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqWcmCoreImplLinkCheckerConfigurationFactoryImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     LinkExpiredPrefix == other.LinkExpiredPrefix ||
                     LinkExpiredPrefix != null &&
                     LinkExpiredPrefix.Equals(other.LinkExpiredPrefix)
                     ) &&
                 (
                     LinkExpiredRemove == other.LinkExpiredRemove ||
                     LinkExpiredRemove != null &&
                     LinkExpiredRemove.Equals(other.LinkExpiredRemove)
                 ) &&
                 (
                     LinkExpiredSuffix == other.LinkExpiredSuffix ||
                     LinkExpiredSuffix != null &&
                     LinkExpiredSuffix.Equals(other.LinkExpiredSuffix)
                 ) &&
                 (
                     LinkInvalidPrefix == other.LinkInvalidPrefix ||
                     LinkInvalidPrefix != null &&
                     LinkInvalidPrefix.Equals(other.LinkInvalidPrefix)
                 ) &&
                 (
                     LinkInvalidRemove == other.LinkInvalidRemove ||
                     LinkInvalidRemove != null &&
                     LinkInvalidRemove.Equals(other.LinkInvalidRemove)
                 ) &&
                 (
                     LinkInvalidSuffix == other.LinkInvalidSuffix ||
                     LinkInvalidSuffix != null &&
                     LinkInvalidSuffix.Equals(other.LinkInvalidSuffix)
                 ) &&
                 (
                     LinkPredatedPrefix == other.LinkPredatedPrefix ||
                     LinkPredatedPrefix != null &&
                     LinkPredatedPrefix.Equals(other.LinkPredatedPrefix)
                 ) &&
                 (
                     LinkPredatedRemove == other.LinkPredatedRemove ||
                     LinkPredatedRemove != null &&
                     LinkPredatedRemove.Equals(other.LinkPredatedRemove)
                 ) &&
                 (
                     LinkPredatedSuffix == other.LinkPredatedSuffix ||
                     LinkPredatedSuffix != null &&
                     LinkPredatedSuffix.Equals(other.LinkPredatedSuffix)
                 ) &&
                 (
                     LinkWcmmodes == other.LinkWcmmodes ||
                     LinkWcmmodes != null &&
                     LinkWcmmodes.Equals(other.LinkWcmmodes)
                 ));
        }