Пример #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 (EventFilter != null)
         {
             hashCode = hashCode * 59 + EventFilter.GetHashCode();
         }
         if (MinThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + MinThreadPoolSize.GetHashCode();
         }
         if (MaxThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + MaxThreadPoolSize.GetHashCode();
         }
         if (CqWcmWorkflowTerminateOnActivate != null)
         {
             hashCode = hashCode * 59 + CqWcmWorkflowTerminateOnActivate.GetHashCode();
         }
         if (CqWcmWorklfowTerminateExclusionList != null)
         {
             hashCode = hashCode * 59 + CqWcmWorklfowTerminateExclusionList.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #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 (MinThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + MinThreadPoolSize.GetHashCode();
         }
         if (MaxThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + MaxThreadPoolSize.GetHashCode();
         }
         return(hashCode);
     }
 }