Example #1
0
        /// <summary>
        /// Returns true if ComDayCqRewriterLinkcheckerImplLinkCheckerTransformerFactoryProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqRewriterLinkcheckerImplLinkCheckerTransformerFactoryProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqRewriterLinkcheckerImplLinkCheckerTransformerFactoryProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     LinkcheckertransformerDisableRewriting == other.LinkcheckertransformerDisableRewriting ||
                     LinkcheckertransformerDisableRewriting != null &&
                     LinkcheckertransformerDisableRewriting.Equals(other.LinkcheckertransformerDisableRewriting)
                     ) &&
                 (
                     LinkcheckertransformerDisableChecking == other.LinkcheckertransformerDisableChecking ||
                     LinkcheckertransformerDisableChecking != null &&
                     LinkcheckertransformerDisableChecking.Equals(other.LinkcheckertransformerDisableChecking)
                 ) &&
                 (
                     LinkcheckertransformerMapCacheSize == other.LinkcheckertransformerMapCacheSize ||
                     LinkcheckertransformerMapCacheSize != null &&
                     LinkcheckertransformerMapCacheSize.Equals(other.LinkcheckertransformerMapCacheSize)
                 ) &&
                 (
                     LinkcheckertransformerStrictExtensionCheck == other.LinkcheckertransformerStrictExtensionCheck ||
                     LinkcheckertransformerStrictExtensionCheck != null &&
                     LinkcheckertransformerStrictExtensionCheck.Equals(other.LinkcheckertransformerStrictExtensionCheck)
                 ) &&
                 (
                     LinkcheckertransformerStripHtmltExtension == other.LinkcheckertransformerStripHtmltExtension ||
                     LinkcheckertransformerStripHtmltExtension != null &&
                     LinkcheckertransformerStripHtmltExtension.Equals(other.LinkcheckertransformerStripHtmltExtension)
                 ) &&
                 (
                     LinkcheckertransformerRewriteElements == other.LinkcheckertransformerRewriteElements ||
                     LinkcheckertransformerRewriteElements != null &&
                     LinkcheckertransformerRewriteElements.Equals(other.LinkcheckertransformerRewriteElements)
                 ) &&
                 (
                     LinkcheckertransformerStripExtensionPathBlacklist == other.LinkcheckertransformerStripExtensionPathBlacklist ||
                     LinkcheckertransformerStripExtensionPathBlacklist != null &&
                     LinkcheckertransformerStripExtensionPathBlacklist.Equals(other.LinkcheckertransformerStripExtensionPathBlacklist)
                 ));
        }
Example #2
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 (LinkcheckertransformerDisableRewriting != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerDisableRewriting.GetHashCode();
         }
         if (LinkcheckertransformerDisableChecking != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerDisableChecking.GetHashCode();
         }
         if (LinkcheckertransformerMapCacheSize != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerMapCacheSize.GetHashCode();
         }
         if (LinkcheckertransformerStrictExtensionCheck != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerStrictExtensionCheck.GetHashCode();
         }
         if (LinkcheckertransformerStripHtmltExtension != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerStripHtmltExtension.GetHashCode();
         }
         if (LinkcheckertransformerRewriteElements != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerRewriteElements.GetHashCode();
         }
         if (LinkcheckertransformerStripExtensionPathBlacklist != null)
         {
             hashCode = hashCode * 59 + LinkcheckertransformerStripExtensionPathBlacklist.GetHashCode();
         }
         return(hashCode);
     }
 }