public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } if (Latitude != 0D) { hash ^= Latitude.GetHashCode(); } if (Longitude != 0D) { hash ^= Longitude.GetHashCode(); } if (Altitude != 0D) { hash ^= Altitude.GetHashCode(); } if (status_ != null) { hash ^= Status.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.title) { hashcode = (hashcode * 397) + Title.GetHashCode(); } if (__isset.address) { hashcode = (hashcode * 397) + Address.GetHashCode(); } if (__isset.latitude) { hashcode = (hashcode * 397) + Latitude.GetHashCode(); } if (__isset.longitude) { hashcode = (hashcode * 397) + Longitude.GetHashCode(); } if (__isset.phone) { hashcode = (hashcode * 397) + Phone.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { int hashCode = -1945719542; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Id); hashCode = hashCode * -1521134295 + EqualityComparer <InlineKeyboardMarkup> .Default.GetHashCode(ReplyMarkup); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ParseMode); hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <MessageEntity> > .Default.GetHashCode(CaptionEntities); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type); hashCode = hashCode * -1521134295 + Longitude.GetHashCode(); hashCode = hashCode * -1521134295 + Latitude.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + HorizontalAccuracy.GetHashCode(); hashCode = hashCode * -1521134295 + LivePeriod.GetHashCode(); hashCode = hashCode * -1521134295 + Heading.GetHashCode(); hashCode = hashCode * -1521134295 + ProximityAlertRadius.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <InputMessageContent> .Default.GetHashCode(InputMessageContent); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ThumbUrl); hashCode = hashCode * -1521134295 + ThumbWidth.GetHashCode(); hashCode = hashCode * -1521134295 + ThumbHeight.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { return((Longitude.GetHashCode() * 397) ^ Latitude.GetHashCode()); } }
public override int GetHashCode() { int hashCode = -545969655; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Id); hashCode = hashCode * -1521134295 + EqualityComparer <InlineKeyboardMarkup> .Default.GetHashCode(ReplyMarkup); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type); hashCode = hashCode * -1521134295 + Latitude.GetHashCode(); hashCode = hashCode * -1521134295 + Longitude.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Address); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FoursquareId); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FoursquareType); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GooglePlaceId); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GooglePlaceType); hashCode = hashCode * -1521134295 + EqualityComparer <InputMessageContent> .Default.GetHashCode(InputMessageContent); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ThumbUrl); hashCode = hashCode * -1521134295 + ThumbWidth.GetHashCode(); hashCode = hashCode * -1521134295 + ThumbHeight.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hash = Longitude.GetHashCode(); hash ^= Latitude.GetHashCode(); return(hash); }
public override int GetHashCode() { int hash = 1; if (EncounterId != 0UL) { hash ^= EncounterId.GetHashCode(); } if (LastModifiedTimestampMs != 0L) { hash ^= LastModifiedTimestampMs.GetHashCode(); } if (Latitude != 0D) { hash ^= Latitude.GetHashCode(); } if (Longitude != 0D) { hash ^= Longitude.GetHashCode(); } if (SpawnPointId.Length != 0) { hash ^= SpawnPointId.GetHashCode(); } if (pokemonData_ != null) { hash ^= PokemonData.GetHashCode(); } if (TimeTillHiddenMs != 0) { hash ^= TimeTillHiddenMs.GetHashCode(); } return(hash); }
// STEP 7: Override GetHashCode public override int GetHashCode() { int hashCode = Longitude.GetHashCode(); hashCode ^= Latitude.GetHashCode(); // Xor (eXclusive OR) return(hashCode); }
public override int GetHashCode() { int hash = 1; if (SpawnPointId.Length != 0) { hash ^= SpawnPointId.GetHashCode(); } if (EncounterId != 0UL) { hash ^= EncounterId.GetHashCode(); } if (PokemonId != 0) { hash ^= PokemonId.GetHashCode(); } if (ExpirationTimestampMs != 0L) { hash ^= ExpirationTimestampMs.GetHashCode(); } if (Latitude != 0D) { hash ^= Latitude.GetHashCode(); } if (Longitude != 0D) { hash ^= Longitude.GetHashCode(); } if (pokemonDisplay_ != null) { hash ^= PokemonDisplay.GetHashCode(); } return(hash); }
/// <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 (Elevation != null) { hashCode = hashCode * 59 + Elevation.GetHashCode(); } if (Latitude != null) { hashCode = hashCode * 59 + Latitude.GetHashCode(); } if (Longitude != null) { hashCode = hashCode * 59 + Longitude.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } return(hashCode); } }
/* ---------- Public methods ----------------------------------------------------------/**/ /// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data /// structures like a hash table. /// </returns> /// <remarks> /// The hash code generation process ignores properties <see cref="Checksum1" />, /// <see cref="Checksum2" /> and <see cref="NcomPacket.Checksum3" />, since they are not /// used when testing for equality. /// </remarks> public override int GetHashCode() { int hash = 13; int mul = 7; hash = (hash * mul) + base.GetHashCode(); hash = (hash * mul) + Time.GetHashCode(); hash = (hash * mul) + AccelerationX.GetHashCode(); hash = (hash * mul) + AccelerationY.GetHashCode(); hash = (hash * mul) + AccelerationZ.GetHashCode(); hash = (hash * mul) + AngularRateX.GetHashCode(); hash = (hash * mul) + AngularRateY.GetHashCode(); hash = (hash * mul) + AngularRateZ.GetHashCode(); hash = (hash * mul) + Latitude.GetHashCode(); hash = (hash * mul) + Longitude.GetHashCode(); hash = (hash * mul) + Altitude.GetHashCode(); hash = (hash * mul) + NorthVelocity.GetHashCode(); hash = (hash * mul) + EastVelocity.GetHashCode(); hash = (hash * mul) + DownVelocity.GetHashCode(); hash = (hash * mul) + Heading.GetHashCode(); hash = (hash * mul) + Pitch.GetHashCode(); hash = (hash * mul) + Roll.GetHashCode(); hash = (hash * mul) + (StatusChannel != null ? StatusChannel.GetHashCode() : 0); return(hash); }
public override int GetHashCode() { int hash = 1; if (Result != 0) { hash ^= Result.GetHashCode(); } if (PokemonId != 0) { hash ^= PokemonId.GetHashCode(); } if (Latitude != 0D) { hash ^= Latitude.GetHashCode(); } if (Longitude != 0D) { hash ^= Longitude.GetHashCode(); } if (EncounterLocation.Length != 0) { hash ^= EncounterLocation.GetHashCode(); } if (EncounterId != 0UL) { hash ^= EncounterId.GetHashCode(); } if (DisappearTimestampMs != 0L) { hash ^= DisappearTimestampMs.GetHashCode(); } return(hash); }
/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Latitude != null) { hashCode = hashCode * 59 + Latitude.GetHashCode(); } if (Longitude != null) { hashCode = hashCode * 59 + Longitude.GetHashCode(); } if (Comment != null) { hashCode = hashCode * 59 + Comment.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = CustomerID; hashCode = (hashCode * 397) ^ (CustomerName != null ? CustomerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BusinessNumber != null ? BusinessNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Domain != null ? Domain.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Address != null ? Address.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); hashCode = (hashCode * 397) ^ (ZipCode != null ? ZipCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Phone != null ? Phone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Fax != null ? Fax.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Notes != null ? Notes.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Logo != null ? Logo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Website != null ? Website.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Longitude.GetHashCode(); hashCode = (hashCode * 397) ^ Latitude.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ LastModified.GetHashCode(); return(hashCode); } }
/// <summary> /// Retruns a hash that represents this instance. /// </summary> /// <returns></returns> public override int GetHashCode() { int hash = 57; hash = 27 * hash * Latitude.GetHashCode(); hash = 27 * hash * Longitude.GetHashCode(); return(hash); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { if (Altitude != null) { return(Longitude.GetHashCode() ^ Latitude.GetHashCode() ^ Altitude.GetHashCode()); } return(Longitude.GetHashCode() ^ Latitude.GetHashCode()); }
public override int GetHashCode() { var hashCode = 1861411795; hashCode = hashCode * -1521134295 + Longitude.GetHashCode(); hashCode = hashCode * -1521134295 + Latitude.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashCode = -1416534245; hashCode = hashCode * -1521134295 + Latitude.GetHashCode(); hashCode = hashCode * -1521134295 + Longitude.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 13; hash = (hash * 7) + Latitude.GetHashCode(); hash = (hash * 7) + Longitude.GetHashCode(); return(hash); }
protected override int GetHashCodeCore() { var hash = 13; hash = (hash * 7) + Latitude.GetHashCode(); hash = (hash * 7) + Longitude.GetHashCode(); return(hash); }
// ReSharper disable once NonReadonlyMemberInGetHashCode public override int GetHashCode() { unchecked { // ReSharper disable once NonReadonlyMemberInGetHashCode var i = Longitude.GetHashCode() * 397; return(i ^ Latitude.GetHashCode()); } }
public override int GetHashCode() { int hash = 23; hash = hash * 31 + Latitude.GetHashCode(); hash = hash * 31 + Longitude.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { return((Latitude.GetHashCode() * 3) + (Longitude.GetHashCode() * 3) + (Altitude.GetHashCode() * 3) * 17); } }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Latitude?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Longitude?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { var hashCode = 1960202551; hashCode = hashCode * -1521134295 + Latitude.GetHashCode(); hashCode = hashCode * -1521134295 + Longitude.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Distance> .Default.GetHashCode(Elevation); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (Latitude != null ? Latitude.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Longitude != null ? Longitude.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Elevation != null ? Elevation.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 13; hash = (hash * 7) + Latitude?.GetHashCode() ?? 0; hash = (hash * 7) + Longitude?.GetHashCode() ?? 0; hash = (hash * 7) + Name?.GetHashCode() ?? 0; hash = (hash * 7) + Country?.GetHashCode() ?? 0; return(hash); }
public override int GetHashCode() { int hash = 17; hash = hash * 23 + Latitude.GetHashCode(); hash = hash * 23 + Longitude.GetHashCode(); hash = hash * 23 + Altitude.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = Latitude.GetHashCode(); hashCode = (hashCode * 397) ^ Longitude.GetHashCode(); hashCode = (hashCode * 397) ^ Radius.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Latitude.GetHashCode(); hashCode = (hashCode * 397) ^ Longitude.GetHashCode(); return(hashCode); } }