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() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Street != null ? Street.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BuildingNumber != null ? BuildingNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FlatNumber != null ? FlatNumber.GetHashCode() : 0); return(hashCode); } }