Esempio 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 (Specs != null)
         {
             hashCode = hashCode * 59 + Specs.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Logo != null)
         {
             hashCode = hashCode * 59 + Logo.GetHashCode();
         }
         if (Region != null)
         {
             hashCode = hashCode * 59 + Region.GetHashCode();
         }
         if (Lang != null)
         {
             hashCode = hashCode * 59 + Lang.GetHashCode();
         }
         if (AuthType != null)
         {
             hashCode = hashCode * 59 + AuthType.GetHashCode();
         }
         if (Oauth2 != null)
         {
             hashCode = hashCode * 59 + Oauth2.GetHashCode();
         }
         if (Methods != null)
         {
             hashCode = hashCode * 59 + Methods.GetHashCode();
         }
         return(hashCode);
     }
 }