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); }
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); }
/// <inheritdoc /> protected override int GetHashCodeCore() { return(AddressLine.GetHashCode()); }