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 (OrgApacheSlingCommonsLogFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileNumber != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileNumber.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileSize != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileSize.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileBuffered != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileBuffered.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (OrgApacheSlingCommonsLogLevel != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogLevel.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogPattern != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPattern.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogNames != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogNames.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogAdditiv != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogAdditiv.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #3
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 (OrgApacheSlingCommonsLogLevel != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogLevel.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileNumber != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileNumber.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogFileSize != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogFileSize.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogPattern != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPattern.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogConfigurationFile != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogConfigurationFile.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogPackagingDataEnabled != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogPackagingDataEnabled.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogMaxCallerDataDepth != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogMaxCallerDataDepth.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogMaxOldFileCountInDump != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogMaxOldFileCountInDump.GetHashCode();
         }
         if (OrgApacheSlingCommonsLogNumOfLines != null)
         {
             hashCode = hashCode * 59 + OrgApacheSlingCommonsLogNumOfLines.GetHashCode();
         }
         return(hashCode);
     }
 }