Exemplo n.º 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 (SlingServletResourceTypes != null)
         {
             hashCode = hashCode * 59 + SlingServletResourceTypes.GetHashCode();
         }
         if (SlingServletMethods != null)
         {
             hashCode = hashCode * 59 + SlingServletMethods.GetHashCode();
         }
         if (SlingServletExtensions != null)
         {
             hashCode = hashCode * 59 + SlingServletExtensions.GetHashCode();
         }
         if (SlingServletSelectors != null)
         {
             hashCode = hashCode * 59 + SlingServletSelectors.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 (ServiceName != null)
         {
             hashCode = hashCode * 59 + ServiceName.GetHashCode();
         }
         if (SlingServletResourceTypes != null)
         {
             hashCode = hashCode * 59 + SlingServletResourceTypes.GetHashCode();
         }
         if (SlingServletSelectors != null)
         {
             hashCode = hashCode * 59 + SlingServletSelectors.GetHashCode();
         }
         if (SlingServletMethods != null)
         {
             hashCode = hashCode * 59 + SlingServletMethods.GetHashCode();
         }
         if (FormsFormchooserservletAdvansesearchRequire != null)
         {
             hashCode = hashCode * 59 + FormsFormchooserservletAdvansesearchRequire.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 (SlingServletResourceTypes != null)
         {
             hashCode = hashCode * 59 + SlingServletResourceTypes.GetHashCode();
         }
         if (SlingServletMethods != null)
         {
             hashCode = hashCode * 59 + SlingServletMethods.GetHashCode();
         }
         if (SlingServletSelectors != null)
         {
             hashCode = hashCode * 59 + SlingServletSelectors.GetHashCode();
         }
         if (DownloadConfig != null)
         {
             hashCode = hashCode * 59 + DownloadConfig.GetHashCode();
         }
         if (ViewSelector != null)
         {
             hashCode = hashCode * 59 + ViewSelector.GetHashCode();
         }
         if (SendEmail != null)
         {
             hashCode = hashCode * 59 + SendEmail.GetHashCode();
         }
         return(hashCode);
     }
 }