public override int GetHashCode()
        {
            int hash = 1;

            if (StreetName.Length != 0)
            {
                hash ^= StreetName.GetHashCode();
            }
            if (BuildingNumber != 0)
            {
                hash ^= BuildingNumber.GetHashCode();
            }
            if (AddressLine.Length != 0)
            {
                hash ^= AddressLine.GetHashCode();
            }
            if (PostCode.Length != 0)
            {
                hash ^= PostCode.GetHashCode();
            }
            if (TownName.Length != 0)
            {
                hash ^= TownName.GetHashCode();
            }
            if (Country.Length != 0)
            {
                hash ^= Country.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Street?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (City?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Country?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Number?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PostCode?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Label?.GetHashCode() ?? 0);
            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 (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (AdditionalInfo != null)
         {
             hashCode = hashCode * 59 + AdditionalInfo.GetHashCode();
         }
         if (DistrictName != null)
         {
             hashCode = hashCode * 59 + DistrictName.GetHashCode();
         }
         if (TownName != null)
         {
             hashCode = hashCode * 59 + TownName.GetHashCode();
         }
         if (IbgeCode != null)
         {
             hashCode = hashCode * 59 + IbgeCode.GetHashCode();
         }
         if (CountrySubDivision != null)
         {
             hashCode = hashCode * 59 + CountrySubDivision.GetHashCode();
         }
         if (PostCode != null)
         {
             hashCode = hashCode * 59 + PostCode.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (CountryCode != null)
         {
             hashCode = hashCode * 59 + CountryCode.GetHashCode();
         }
         if (GeographicCoordinates != null)
         {
             hashCode = hashCode * 59 + GeographicCoordinates.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #4
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 (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (EmailAddress != null)
         {
             hashCode = hashCode * 59 + EmailAddress.GetHashCode();
         }
         if (FaxNumber != null)
         {
             hashCode = hashCode * 59 + FaxNumber.GetHashCode();
         }
         if (PhoneNumber != null)
         {
             hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
         }
         if (PostCode != null)
         {
             hashCode = hashCode * 59 + PostCode.GetHashCode();
         }
         if (StateOrProvince != null)
         {
             hashCode = hashCode * 59 + StateOrProvince.GetHashCode();
         }
         if (Street1 != null)
         {
             hashCode = hashCode * 59 + Street1.GetHashCode();
         }
         if (Street2 != null)
         {
             hashCode = hashCode * 59 + Street2.GetHashCode();
         }
         if (MediumCharacteristicType != null)
         {
             hashCode = hashCode * 59 + MediumCharacteristicType.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #5
0
        public override int GetHashCode()
        {
            var hashCode = 1579553855;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Surname);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(BirthContury);

            hashCode = hashCode * -1521134295 + PostCode.GetHashCode();
            // hashCode = hashCode * -1521134295 + Age.GetHashCode();
            hashCode = hashCode * -1521134295 + tOcupation.GetHashCode();
            return(hashCode);
        }
Example #6
0
 /// <inheritdoc />
 public override int GetHashCode() => PostCode.GetHashCode();