Beispiel #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 (OsgiHttpWhiteboardContextSelect != null)
         {
             hashCode = hashCode * 59 + OsgiHttpWhiteboardContextSelect.GetHashCode();
         }
         if (OsgiHttpWhiteboardListener != null)
         {
             hashCode = hashCode * 59 + OsgiHttpWhiteboardListener.GetHashCode();
         }
         if (AuthSudoCookie != null)
         {
             hashCode = hashCode * 59 + AuthSudoCookie.GetHashCode();
         }
         if (AuthSudoParameter != null)
         {
             hashCode = hashCode * 59 + AuthSudoParameter.GetHashCode();
         }
         if (AuthAnnonymous != null)
         {
             hashCode = hashCode * 59 + AuthAnnonymous.GetHashCode();
         }
         if (SlingAuthRequirements != null)
         {
             hashCode = hashCode * 59 + SlingAuthRequirements.GetHashCode();
         }
         if (SlingAuthAnonymousUser != null)
         {
             hashCode = hashCode * 59 + SlingAuthAnonymousUser.GetHashCode();
         }
         if (SlingAuthAnonymousPassword != null)
         {
             hashCode = hashCode * 59 + SlingAuthAnonymousPassword.GetHashCode();
         }
         if (AuthHttp != null)
         {
             hashCode = hashCode * 59 + AuthHttp.GetHashCode();
         }
         if (AuthHttpRealm != null)
         {
             hashCode = hashCode * 59 + AuthHttpRealm.GetHashCode();
         }
         if (AuthUriSuffix != null)
         {
             hashCode = hashCode * 59 + AuthUriSuffix.GetHashCode();
         }
         return(hashCode);
     }
 }