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() { return (StreetName.GetHashCode() ^ Number.GetHashCode() ^ AdditionalInfo.GetHashCode() ^ Neighborhood.GetHashCode() ^ City.GetHashCode() ^ State.GetHashCode() ^ PostalCode.GetHashCode() ^ Country.GetHashCode()); }
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()); }
public override int GetHashCode() { unchecked { var hashCode = (ZipCode != null ? ZipCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StreetName != null ? StreetName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BuildNumber != null ? BuildNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (District != null ? District.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Complement != null ? Complement.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (State != null ? State.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; if (Text != null) { hashCode = hashCode * 59 + Text.GetHashCode(); } if (StreetName != null) { hashCode = hashCode * 59 + StreetName.GetHashCode(); } if (Distance != null) { hashCode = hashCode * 59 + Distance.GetHashCode(); } if (Time != null) { hashCode = hashCode * 59 + Time.GetHashCode(); } if (Interval != null) { hashCode = hashCode * 59 + Interval.GetHashCode(); } if (Sign != null) { hashCode = hashCode * 59 + Sign.GetHashCode(); } if (AnnotationText != null) { hashCode = hashCode * 59 + AnnotationText.GetHashCode(); } if (AnnotationImportance != null) { hashCode = hashCode * 59 + AnnotationImportance.GetHashCode(); } if (ExitNumber != null) { hashCode = hashCode * 59 + ExitNumber.GetHashCode(); } if (TurnAngle != null) { hashCode = hashCode * 59 + TurnAngle.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() => ZipCode.GetHashCode() ^ DirectionPrefix.GetHashCode() ^ StreetName.GetHashCode() ^ StreetSuffix.GetHashCode() ^ DirectionSuffix.GetHashCode();
/// <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); } }