/// <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 (PeriodeGeldigheid != null)
         {
             hashCode = hashCode * 59 + PeriodeGeldigheid.GetHashCode();
         }
         if (IdentificatieNummerAanduiding != null)
         {
             hashCode = hashCode * 59 + IdentificatieNummerAanduiding.GetHashCode();
         }
         if (Postcode != null)
         {
             hashCode = hashCode * 59 + Postcode.GetHashCode();
         }
         if (Huisnummer != null)
         {
             hashCode = hashCode * 59 + Huisnummer.GetHashCode();
         }
         if (Huisletter != null)
         {
             hashCode = hashCode * 59 + Huisletter.GetHashCode();
         }
         if (Huisnummertoevoeging != null)
         {
             hashCode = hashCode * 59 + Huisnummertoevoeging.GetHashCode();
         }
         if (Locatiebeschrijving != null)
         {
             hashCode = hashCode * 59 + Locatiebeschrijving.GetHashCode();
         }
         if (NaamOpenbareRuimte != null)
         {
             hashCode = hashCode * 59 + NaamOpenbareRuimte.GetHashCode();
         }
         if (Woonplaatsnaam != null)
         {
             hashCode = hashCode * 59 + Woonplaatsnaam.GetHashCode();
         }
         if (WoonplaatsIdentificatie != null)
         {
             hashCode = hashCode * 59 + WoonplaatsIdentificatie.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Address1 != null?Address1.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Address2 != null ? Address2.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Company != null ? Company.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Postcode != null ? Postcode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
                return(hashCode);
            }
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Company != null?Company.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Address1 != null ? Address1.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Address2 != null ? Address2.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Address3 != null ? Address3.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Address4 != null ? Address4.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Address5 != null ? Address5.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Town != null ? Town.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (County != null ? County.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Postcode != null ? Postcode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Country != null ? Country.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 (MailingName != null)
         {
             hashCode = hashCode * 59 + MailingName.GetHashCode();
         }
         if (AddressLine1 != null)
         {
             hashCode = hashCode * 59 + AddressLine1.GetHashCode();
         }
         if (AddressLine2 != null)
         {
             hashCode = hashCode * 59 + AddressLine2.GetHashCode();
         }
         if (AddressLine3 != null)
         {
             hashCode = hashCode * 59 + AddressLine3.GetHashCode();
         }
         if (Postcode != null)
         {
             hashCode = hashCode * 59 + Postcode.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();
         }
         return(hashCode);
     }
 }
Exemplo n.º 5
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 (Dpid != null)
         {
             hashCode = hashCode * 59 + Dpid.GetHashCode();
         }
         if (ThoroughfareNumber1 != null)
         {
             hashCode = hashCode * 59 + ThoroughfareNumber1.GetHashCode();
         }
         if (ThoroughfareNumber1Suffix != null)
         {
             hashCode = hashCode * 59 + ThoroughfareNumber1Suffix.GetHashCode();
         }
         if (ThoroughfareNumber2 != null)
         {
             hashCode = hashCode * 59 + ThoroughfareNumber2.GetHashCode();
         }
         if (ThoroughfareNumber2Suffix != null)
         {
             hashCode = hashCode * 59 + ThoroughfareNumber2Suffix.GetHashCode();
         }
         if (FlatUnitNumber != null)
         {
             hashCode = hashCode * 59 + FlatUnitNumber.GetHashCode();
         }
         if (FloorLevelNumber != null)
         {
             hashCode = hashCode * 59 + FloorLevelNumber.GetHashCode();
         }
         if (LotNumber != null)
         {
             hashCode = hashCode * 59 + LotNumber.GetHashCode();
         }
         if (BuildingName1 != null)
         {
             hashCode = hashCode * 59 + BuildingName1.GetHashCode();
         }
         if (BuildingName2 != null)
         {
             hashCode = hashCode * 59 + BuildingName2.GetHashCode();
         }
         if (StreetName != null)
         {
             hashCode = hashCode * 59 + StreetName.GetHashCode();
         }
         if (StreetType != null)
         {
             hashCode = hashCode * 59 + StreetType.GetHashCode();
         }
         if (StreetSuffix != null)
         {
             hashCode = hashCode * 59 + StreetSuffix.GetHashCode();
         }
         if (PostalDeliveryType != null)
         {
             hashCode = hashCode * 59 + PostalDeliveryType.GetHashCode();
         }
         if (PostalDeliveryNumber != null)
         {
             hashCode = hashCode * 59 + PostalDeliveryNumber.GetHashCode();
         }
         if (PostalDeliveryNumberPrefix != null)
         {
             hashCode = hashCode * 59 + PostalDeliveryNumberPrefix.GetHashCode();
         }
         if (PostalDeliveryNumberSuffix != null)
         {
             hashCode = hashCode * 59 + PostalDeliveryNumberSuffix.GetHashCode();
         }
         if (LocalityName != null)
         {
             hashCode = hashCode * 59 + LocalityName.GetHashCode();
         }
         if (Postcode != null)
         {
             hashCode = hashCode * 59 + Postcode.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 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 (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }
                if (Label != null)
                {
                    hashCode = hashCode * 59 + Label.GetHashCode();
                }

                hashCode = hashCode * 59 + Score.GetHashCode();
                if (HouseNumber != null)
                {
                    hashCode = hashCode * 59 + HouseNumber.GetHashCode();
                }
                if (Street != null)
                {
                    hashCode = hashCode * 59 + Street.GetHashCode();
                }
                if (Region != null)
                {
                    hashCode = hashCode * 59 + Region.GetHashCode();
                }
                if (RegionCode != null)
                {
                    hashCode = hashCode * 59 + RegionCode.GetHashCode();
                }
                if (Neighbourhood != null)
                {
                    hashCode = hashCode * 59 + Neighbourhood.GetHashCode();
                }
                if (County != null)
                {
                    hashCode = hashCode * 59 + County.GetHashCode();
                }
                if (Macroregion != null)
                {
                    hashCode = hashCode * 59 + Macroregion.GetHashCode();
                }
                if (City != null)
                {
                    hashCode = hashCode * 59 + City.GetHashCode();
                }
                if (Country != null)
                {
                    hashCode = hashCode * 59 + Country.GetHashCode();
                }
                if (CountryCode != null)
                {
                    hashCode = hashCode * 59 + CountryCode.GetHashCode();
                }
                if (Continent != null)
                {
                    hashCode = hashCode * 59 + Continent.GetHashCode();
                }
                if (Postcode != null)
                {
                    hashCode = hashCode * 59 + Postcode.GetHashCode();
                }
                if (Features != null)
                {
                    hashCode = hashCode * 59 + Features.GetHashCode();
                }
                return(hashCode);
            }
        }