Example #1
0
        public override int GetHashCode()
        {
            int code = 27;

            code = unchecked (
                code ^
                EmployeeID.GetHashCode() ^
                FirstName.GetHashCode() ^
                Title.GetHashCode() ^
                TitleOfCourtesy.GetHashCode() ^
                BirthDate.GetHashCode() ^
                HireDate.GetHashCode() ^
                Address.GetHashCode() ^
                City.GetHashCode() ^
                Region.GetHashCode() ^
                PostalCode.GetHashCode() ^
                Country.GetHashCode() ^
                HomePhone.GetHashCode() ^
                Extension.GetHashCode() ^
                Photo.GetHashCode() ^
                Notes.GetHashCode() ^
                ReportsTo.GetHashCode() ^
                PhotoPath.GetHashCode()
                );
            return(code);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TitleOfCourtesy != null ? TitleOfCourtesy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BirthDate.GetHashCode();
         hashCode = (hashCode * 397) ^ HireDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Address != null ? Address.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HomePhone != null ? HomePhone.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Extension != null ? Extension.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Photo != null ? Photo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Notes != null ? Notes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ReportsTo.GetHashCode();
         hashCode = (hashCode * 397) ^ (PhotoPath != null ? PhotoPath.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #3
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(Country.GetHashCode() * 19 ^
                       City.GetHashCode() * 17 ^
                       Street.GetHashCode() * 13 ^

                       (PostalCode.IsNotNullOrEmpty()
                            ? PostalCode.GetHashCode() * 11
                            : 0) ^

                       (HouseNumber.IsNotNullOrEmpty()
                            ? HouseNumber.GetHashCode() * 7
                            : 0) ^

                       (FloorLevel.IsNotNullOrEmpty()
                            ? FloorLevel.GetHashCode() * 5
                            : 0) ^

                       (Region.IsNotNullOrEmpty()
                            ? Region.GetHashCode() * 3
                            : 0) ^

                       (Timezone.IsNotNullOrEmpty()
                            ? Timezone.GetHashCode()
                            : 0));
            }
        }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FirstName.Length != 0)
            {
                hash ^= FirstName.GetHashCode();
            }
            if (LastName.Length != 0)
            {
                hash ^= LastName.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            if (PostalCode != 0)
            {
                hash ^= PostalCode.GetHashCode();
            }
            if (City.Length != 0)
            {
                hash ^= City.GetHashCode();
            }
            return(hash);
        }
Example #5
0
 public override int GetHashCode()
 {
     return(Name?.GetHashCode() ?? 1 +
            PostalCode?.GetHashCode() ?? 1 +
            StateName?.GetHashCode() ?? 1
            );
 }
Example #6
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 (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Use != null)
         {
             hashCode = hashCode * 59 + Use.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Line != null)
         {
             hashCode = hashCode * 59 + Line.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (District != null)
         {
             hashCode = hashCode * 59 + District.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (PostalCode != null)
         {
             hashCode = hashCode * 59 + PostalCode.GetHashCode();
         }
         if (Period != null)
         {
             hashCode = hashCode * 59 + Period.GetHashCode();
         }
         if (Creation != null)
         {
             hashCode = hashCode * 59 + Creation.GetHashCode();
         }
         if (LastUpdated != null)
         {
             hashCode = hashCode * 59 + LastUpdated.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #7
0
        public override int GetHashCode()
        {
            int hash = 0;

            if (!string.IsNullOrWhiteSpace(AddressLine))
            {
                hash ^= AddressLine.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(AdminDistrict))
            {
                hash ^= AdminDistrict.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(AdminDistrict2))
            {
                hash ^= AdminDistrict2.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(CountryRegion))
            {
                hash ^= CountryRegion.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(FormattedAddress))
            {
                hash ^= FormattedAddress.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(Locality))
            {
                hash ^= Locality.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(PostalCode))
            {
                hash ^= PostalCode.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(PostalTown))
            {
                hash ^= PostalTown.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(Landmark))
            {
                hash ^= Landmark.GetHashCode();
            }

            if (!string.IsNullOrWhiteSpace(Neighborhood))
            {
                hash ^= Neighborhood.GetHashCode();
            }

            return(hash);
        }
Example #8
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Country != default(string))
                {
                    hash = hash * 23 + Country.GetHashCode();
                }
                if (City != default(string))
                {
                    hash = hash * 23 + City.GetHashCode();
                }
                if (Bank != default(string))
                {
                    hash = hash * 23 + Bank.GetHashCode();
                }
                if (PostalCode != default(string))
                {
                    hash = hash * 23 + PostalCode.GetHashCode();
                }
                if (Financing != default(string))
                {
                    hash = hash * 23 + Financing.GetHashCode();
                }
                if (LastDigits != default(string))
                {
                    hash = hash * 23 + LastDigits.GetHashCode();
                }
                if (Brand != default(string))
                {
                    hash = hash * 23 + Brand.GetHashCode();
                }
                if (ExpirationMonth != default(int))
                {
                    hash = hash * 23 + ExpirationMonth.GetHashCode();
                }
                if (ExpirationYear != default(int))
                {
                    hash = hash * 23 + ExpirationYear.GetHashCode();
                }
                if (Fingerprint != default(string))
                {
                    hash = hash * 23 + Fingerprint.GetHashCode();
                }
                if (Name != default(string))
                {
                    hash = hash * 23 + Name.GetHashCode();
                }
                if (SecurityCodeCheck != default(bool))
                {
                    hash = hash * 23 + SecurityCodeCheck.GetHashCode();
                }

                return(hash);
            }
        }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Area?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PostalCode?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (County?.GetHashCode() ?? 0);
            return(hashCode);
        }
Example #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Street != null ? Street.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (StreetAndNr != null) ? StreetAndNr.GetHashCode() : 0;
         result = (result * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         result = (result * 397) ^ (City != null ? City.GetHashCode() : 0);
         return(result);
     }
 }
Example #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Address != null ? Address.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CountryCode != null ? CountryCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #13
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (StreetAddress != null ? StreetAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Locality != null ? Locality.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CountryName != null ? CountryName.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Streets != null ? Streets.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #15
0
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 ///     A hash code for the current <see cref="T:System.Object" />.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id;
         hashCode = (hashCode * 397) ^ (Street != null ? Street.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HouseNumber != null ? HouseNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #16
0
 public override int GetHashCode()
 {
     // allow overflow
     unchecked
     {
         int hash = 17;
         hash = (hash * 23) + Name.GetHashCode();
         hash = (hash * 23) + City.GetHashCode();
         hash = (hash * 23) + PostalCode.GetHashCode();
         hash = (hash * 23) + PostalAbbreviation.GetHashCode();
         return(hash);
     }
 }
 protected override int GetHashCodeCore()
 {
     return(CountryCode.GetHashCode() ^
            Country.GetHashCode() ^
            PostalCode.GetHashCode() ^
            State.GetHashCode() ^
            County.GetHashCode() ^
            City.GetHashCode() ^
            Suburb.GetHashCode() ^
            StreetName.GetHashCode() ^
            StreetNumber.GetHashCode() ^
            PlaceName.GetHashCode());
 }
Example #18
0
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(Street.GetHashCode() * 17 ^
                HouseNumber.GetHashCode() * 13 ^
                FloorLevel.GetHashCode() * 11 ^
                PostalCode.GetHashCode() * 7 ^
                PostalCodeSub.GetHashCode() * 5 ^
                City.GetHashCode() * 3 ^
                Country.GetHashCode());
     }
 }
Example #19
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 (ReferenceNumber != null)
         {
             hashCode = hashCode * 59 + ReferenceNumber.GetHashCode();
         }
         if (FirstName != null)
         {
             hashCode = hashCode * 59 + FirstName.GetHashCode();
         }
         if (LastName != null)
         {
             hashCode = hashCode * 59 + LastName.GetHashCode();
         }
         if (Address1 != null)
         {
             hashCode = hashCode * 59 + Address1.GetHashCode();
         }
         if (Address2 != null)
         {
             hashCode = hashCode * 59 + Address2.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (CountryCode != null)
         {
             hashCode = hashCode * 59 + CountryCode.GetHashCode();
         }
         if (PostalCode != null)
         {
             hashCode = hashCode * 59 + PostalCode.GetHashCode();
         }
         if (PhoneNumber != null)
         {
             hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #20
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (AddressLine1 == null ? 0 : AddressLine1.GetHashCode());
         hash = hash * 23 + (AddressLine2 == null ? 0 : AddressLine2.GetHashCode());
         hash = hash * 23 + (City == null ? 0 : City.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (PostalCode == null ? 0 : PostalCode.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         hash = hash * 23 + (StateProvinceId == default(int) ? 0 : StateProvinceId.GetHashCode());
         return(hash);
     }
 }
Example #21
0
        /// <summary>
        ///     Serves as a hash function for a particular type.
        /// </summary>
        /// <returns>
        ///     A hash code for the current <see cref="T:System.Object" />.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            unchecked
            {
                int result = FirstStreetAddress != null?FirstStreetAddress.GetHashCode() : 0;

                result = (result * 397) ^ (SecondStreetAddress != null ? SecondStreetAddress.GetHashCode() : 0);
                result = (result * 397) ^ (CityName != null ? CityName.GetHashCode() : 0);
                //result = (result * 397) ^ (CountyArea != null ? CountyArea.GetHashCode() : 0);
                result = (result * 397) ^ (StateProvince != null ? StateProvince.GetHashCode() : 0);
                //result = (result * 397) ^ (Country != null ? Country.GetHashCode() : 0);
                result = (result * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
                return(result);
            }
        }
Example #22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Revision != 0)
            {
                hash ^= Revision.GetHashCode();
            }
            if (RegionCode.Length != 0)
            {
                hash ^= RegionCode.GetHashCode();
            }
            if (LanguageCode.Length != 0)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (PostalCode.Length != 0)
            {
                hash ^= PostalCode.GetHashCode();
            }
            if (SortingCode.Length != 0)
            {
                hash ^= SortingCode.GetHashCode();
            }
            if (AdministrativeArea.Length != 0)
            {
                hash ^= AdministrativeArea.GetHashCode();
            }
            if (Locality.Length != 0)
            {
                hash ^= Locality.GetHashCode();
            }
            if (Sublocality.Length != 0)
            {
                hash ^= Sublocality.GetHashCode();
            }
            hash ^= addressLines_.GetHashCode();
            hash ^= recipients_.GetHashCode();
            if (Organization.Length != 0)
            {
                hash ^= Organization.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Line1 != null?Line1.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Line2 != null ? Line2.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Line3 != null ? Line3.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Line4 != null ? Line4.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #24
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = LocationId.GetHashCode();
         hashCode = (hashCode * 397) ^ (CountryCode != null ? CountryCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RegionCode != null ? RegionCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CityName != null ? CityName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Latitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
         hashCode = (hashCode * 397) ^ MetroCode.GetHashCode();
         hashCode = (hashCode * 397) ^ (AreaCode != null ? AreaCode.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #25
0
 public int GetIdempotentKey()
 {
     unchecked
     {
         int hashCode = Address?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (City?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Email?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (FirstName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Identifier?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (LastName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Phone?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PostalCode?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PostalPlace?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Example #26
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Gcp != null ? Gcp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addr2 != null ? Addr2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addr3 != null ? Addr3.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addr4 != null ? Addr4.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tel != null ? Tel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Mail != null ? Mail.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #27
0
        public override int GetHashCode()
        {
            var hashCode = -931275965;

            hashCode = hashCode * -1521134295 + CustomerID.GetHashCode();
            hashCode = hashCode * -1521134295 + CompanyName.GetHashCode();
            hashCode = hashCode * -1521134295 + ContactName.GetHashCode();
            hashCode = hashCode * -1521134295 + Address.GetHashCode();
            hashCode = hashCode * -1521134295 + City.GetHashCode();
            hashCode = hashCode * -1521134295 + Region.GetHashCode();
            hashCode = hashCode * -1521134295 + PostalCode.GetHashCode();
            hashCode = hashCode * -1521134295 + Country.GetHashCode();
            hashCode = hashCode * -1521134295 + Phone.GetHashCode();
            hashCode = hashCode * -1521134295 + Fax.GetHashCode();

            return(hashCode);
        }
        /// <summary>
        /// Calculates a hashcode for this <see cref="BoardMember"/> object.
        /// </summary>
        /// <returns>A calculated hashcode.</returns>
        public override int GetHashCode()
        {
            const int prime = 397;
            int       hash  = Id;

            hash = (hash * prime) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
            hash = (hash * prime) ^ (LastName != null ? LastName.GetHashCode() : 0);
            hash = (hash * prime) ^ (BirthDate != null ? BirthDate.GetHashCode() : 0);
            hash = (hash * prime) ^ (Address != null ? Address.GetHashCode() : 0);
            hash = (hash * prime) ^ (City != null ? City.GetHashCode() : 0);
            hash = (hash * prime) ^ (Region != null ? Region.GetHashCode() : 0);
            hash = (hash * prime) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
            hash = (hash * prime) ^ (Country != null ? Country.GetHashCode() : 0);
            hash = (hash * prime) ^ (ContactInfo != null ? ContactInfo.GetHashCode() : 0);
            hash = (hash * prime) ^ (UserCredentials != null ? UserCredentials.GetHashCode() : 0);
            return(hash);
        }
Example #29
0
        public override int GetHashCode()
        {
            unchecked {
                int hashCode = Email != null?Email.GetHashCode() : 0;

                hashCode = hashCode * 397 ^ (Company != null ? Company.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Street != null ? Street.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (StreetNumber != null ? StreetNumber.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (City != null ? City.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (int)Country;
                hashCode = hashCode * 397 ^ (Url != null ? Url.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Phone != null ? Phone.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (PhonePrivate != null ? PhonePrivate.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Mobile != null ? Mobile.GetHashCode() : 0);
                return(hashCode);
            }
        }
#pragma warning disable CS1584 // XML comment has syntactically incorrect cref attribute
#pragma warning disable CS1658 // Warning is overriding an error

        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        /// <seealso cref="https://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode/263416#263416"/>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap.
            {
                int hash = 17;
                hash = hash * 23 + FirstName?.GetHashCode() ?? 0;
                hash = hash * 23 + LastName?.GetHashCode() ?? 0;
                hash = hash * 23 + Email?.GetHashCode() ?? 0;
                hash = hash * 23 + Country?.GetHashCode() ?? 0;
                hash = hash * 23 + StateProvince?.GetHashCode() ?? 0;
                hash = hash * 23 + City?.GetHashCode() ?? 0;
                hash = hash * 23 + Address1?.GetHashCode() ?? 0;
                hash = hash * 23 + Address2?.GetHashCode() ?? 0;
                hash = hash * 23 + PostalCode?.GetHashCode() ?? 0;
                hash = hash * 23 + PhoneNumber?.GetHashCode() ?? 0;
                return(hash);
            }
        }