Beispiel #1
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Verified.GetHashCode();
                hash = hash * 23 + Active.GetHashCode();
                hash = hash * 23 + Name.GetHashCode();
                hash = hash * 23 + Email.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Type.GetHashCode();
                hash = hash * 23 + TaxID.GetHashCode();
                hash = hash * 23 + BankAccount.GetHashCode();
                hash = hash * 23 + FailureCode.GetHashCode();

                return(hash);
            }
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Verified != default(bool))
                {
                    hash = hash * 23 + Verified.GetHashCode();
                }
                if (Active != default(bool))
                {
                    hash = hash * 23 + Active.GetHashCode();
                }
                if (Name != default(string))
                {
                    hash = hash * 23 + Name.GetHashCode();
                }
                if (Email != default(string))
                {
                    hash = hash * 23 + Email.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Type != default(RecipientType))
                {
                    hash = hash * 23 + Type.GetHashCode();
                }
                if (TaxID != default(string))
                {
                    hash = hash * 23 + TaxID.GetHashCode();
                }
                if (BankAccount != default(BankAccount))
                {
                    hash = hash * 23 + BankAccount.GetHashCode();
                }
                if (FailureCode != default(string))
                {
                    hash = hash * 23 + FailureCode.GetHashCode();
                }

                return(hash);
            }
        }
 /// <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 (ProfileMedium != null)
         {
             hashCode = hashCode * 59 + ProfileMedium.GetHashCode();
         }
         if (CoverPhoto != null)
         {
             hashCode = hashCode * 59 + CoverPhoto.GetHashCode();
         }
         if (CoverPhotoSmall != null)
         {
             hashCode = hashCode * 59 + CoverPhotoSmall.GetHashCode();
         }
         if (SportType != null)
         {
             hashCode = hashCode * 59 + SportType.GetHashCode();
         }
         if (ActivityTypes != null)
         {
             hashCode = hashCode * 59 + ActivityTypes.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (_Private != null)
         {
             hashCode = hashCode * 59 + _Private.GetHashCode();
         }
         if (MemberCount != null)
         {
             hashCode = hashCode * 59 + MemberCount.GetHashCode();
         }
         if (Featured != null)
         {
             hashCode = hashCode * 59 + Featured.GetHashCode();
         }
         if (Verified != null)
         {
             hashCode = hashCode * 59 + Verified.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         return(hashCode);
     }
 }