/// <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 (Enable != null)
         {
             hashCode = hashCode * 59 + Enable.GetHashCode();
         }
         if (AgentConfiguration != null)
         {
             hashCode = hashCode * 59 + AgentConfiguration.GetHashCode();
         }
         if (ContextPath != null)
         {
             hashCode = hashCode * 59 + ContextPath.GetHashCode();
         }
         if (DisabledCipherSuites != null)
         {
             hashCode = hashCode * 59 + DisabledCipherSuites.GetHashCode();
         }
         if (EnabledCipherSuites != null)
         {
             hashCode = hashCode * 59 + EnabledCipherSuites.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 (DisabledCipherSuites != null)
         {
             hashCode = hashCode * 59 + DisabledCipherSuites.GetHashCode();
         }
         if (EnabledCipherSuites != null)
         {
             hashCode = hashCode * 59 + EnabledCipherSuites.GetHashCode();
         }
         return(hashCode);
     }
 }