Example #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 (HtmllibmanagerClientmanager != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerClientmanager.GetHashCode();
         }
         if (HtmllibmanagerDebug != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerDebug.GetHashCode();
         }
         if (HtmllibmanagerDebugConsole != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerDebugConsole.GetHashCode();
         }
         if (HtmllibmanagerDebugInitJs != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerDebugInitJs.GetHashCode();
         }
         if (HtmllibmanagerDefaultthemename != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerDefaultthemename.GetHashCode();
         }
         if (HtmllibmanagerDefaultuserthemename != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerDefaultuserthemename.GetHashCode();
         }
         if (HtmllibmanagerFirebuglitePath != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerFirebuglitePath.GetHashCode();
         }
         if (HtmllibmanagerForceCQUrlInfo != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerForceCQUrlInfo.GetHashCode();
         }
         if (HtmllibmanagerGzip != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerGzip.GetHashCode();
         }
         if (HtmllibmanagerMaxage != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerMaxage.GetHashCode();
         }
         if (HtmllibmanagerMaxDataUriSize != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerMaxDataUriSize.GetHashCode();
         }
         if (HtmllibmanagerMinify != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerMinify.GetHashCode();
         }
         if (HtmllibmanagerPathList != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerPathList.GetHashCode();
         }
         if (HtmllibmanagerTiming != null)
         {
             hashCode = hashCode * 59 + HtmllibmanagerTiming.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
        /// <summary>
        /// Returns true if ComDayCqWidgetImplHtmlLibraryManagerImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqWidgetImplHtmlLibraryManagerImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqWidgetImplHtmlLibraryManagerImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     HtmllibmanagerClientmanager == other.HtmllibmanagerClientmanager ||
                     HtmllibmanagerClientmanager != null &&
                     HtmllibmanagerClientmanager.Equals(other.HtmllibmanagerClientmanager)
                     ) &&
                 (
                     HtmllibmanagerDebug == other.HtmllibmanagerDebug ||
                     HtmllibmanagerDebug != null &&
                     HtmllibmanagerDebug.Equals(other.HtmllibmanagerDebug)
                 ) &&
                 (
                     HtmllibmanagerDebugConsole == other.HtmllibmanagerDebugConsole ||
                     HtmllibmanagerDebugConsole != null &&
                     HtmllibmanagerDebugConsole.Equals(other.HtmllibmanagerDebugConsole)
                 ) &&
                 (
                     HtmllibmanagerDebugInitJs == other.HtmllibmanagerDebugInitJs ||
                     HtmllibmanagerDebugInitJs != null &&
                     HtmllibmanagerDebugInitJs.Equals(other.HtmllibmanagerDebugInitJs)
                 ) &&
                 (
                     HtmllibmanagerDefaultthemename == other.HtmllibmanagerDefaultthemename ||
                     HtmllibmanagerDefaultthemename != null &&
                     HtmllibmanagerDefaultthemename.Equals(other.HtmllibmanagerDefaultthemename)
                 ) &&
                 (
                     HtmllibmanagerDefaultuserthemename == other.HtmllibmanagerDefaultuserthemename ||
                     HtmllibmanagerDefaultuserthemename != null &&
                     HtmllibmanagerDefaultuserthemename.Equals(other.HtmllibmanagerDefaultuserthemename)
                 ) &&
                 (
                     HtmllibmanagerFirebuglitePath == other.HtmllibmanagerFirebuglitePath ||
                     HtmllibmanagerFirebuglitePath != null &&
                     HtmllibmanagerFirebuglitePath.Equals(other.HtmllibmanagerFirebuglitePath)
                 ) &&
                 (
                     HtmllibmanagerForceCQUrlInfo == other.HtmllibmanagerForceCQUrlInfo ||
                     HtmllibmanagerForceCQUrlInfo != null &&
                     HtmllibmanagerForceCQUrlInfo.Equals(other.HtmllibmanagerForceCQUrlInfo)
                 ) &&
                 (
                     HtmllibmanagerGzip == other.HtmllibmanagerGzip ||
                     HtmllibmanagerGzip != null &&
                     HtmllibmanagerGzip.Equals(other.HtmllibmanagerGzip)
                 ) &&
                 (
                     HtmllibmanagerMaxage == other.HtmllibmanagerMaxage ||
                     HtmllibmanagerMaxage != null &&
                     HtmllibmanagerMaxage.Equals(other.HtmllibmanagerMaxage)
                 ) &&
                 (
                     HtmllibmanagerMaxDataUriSize == other.HtmllibmanagerMaxDataUriSize ||
                     HtmllibmanagerMaxDataUriSize != null &&
                     HtmllibmanagerMaxDataUriSize.Equals(other.HtmllibmanagerMaxDataUriSize)
                 ) &&
                 (
                     HtmllibmanagerMinify == other.HtmllibmanagerMinify ||
                     HtmllibmanagerMinify != null &&
                     HtmllibmanagerMinify.Equals(other.HtmllibmanagerMinify)
                 ) &&
                 (
                     HtmllibmanagerPathList == other.HtmllibmanagerPathList ||
                     HtmllibmanagerPathList != null &&
                     HtmllibmanagerPathList.Equals(other.HtmllibmanagerPathList)
                 ) &&
                 (
                     HtmllibmanagerTiming == other.HtmllibmanagerTiming ||
                     HtmllibmanagerTiming != null &&
                     HtmllibmanagerTiming.Equals(other.HtmllibmanagerTiming)
                 ));
        }