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() { int hashCode = -1623438759; if (AddressLine1 != null) { hashCode += AddressLine1.GetHashCode(); } if (AddressLine2 != null) { hashCode += AddressLine2.GetHashCode(); } if (AddressLine3 != null) { hashCode += AddressLine3.GetHashCode(); } if (Locality != null) { hashCode += Locality.GetHashCode(); } if (Sublocality != null) { hashCode += Sublocality.GetHashCode(); } if (Sublocality2 != null) { hashCode += Sublocality2.GetHashCode(); } if (Sublocality3 != null) { hashCode += Sublocality3.GetHashCode(); } if (AdministrativeDistrictLevel1 != null) { hashCode += AdministrativeDistrictLevel1.GetHashCode(); } if (AdministrativeDistrictLevel2 != null) { hashCode += AdministrativeDistrictLevel2.GetHashCode(); } if (AdministrativeDistrictLevel3 != null) { hashCode += AdministrativeDistrictLevel3.GetHashCode(); } if (PostalCode != null) { hashCode += PostalCode.GetHashCode(); } if (Country != null) { hashCode += Country.GetHashCode(); } if (FirstName != null) { hashCode += FirstName.GetHashCode(); } if (LastName != null) { hashCode += LastName.GetHashCode(); } if (Organization != null) { hashCode += Organization.GetHashCode(); } return(hashCode); }