public override int GetHashCode()
 {
     unchecked {
         const int randomPrime = 397;
         int       hashCode    = Id.GetHashCode();
         hashCode = (hashCode * randomPrime) ^ PlaceId.GetHashCode();
         hashCode = (hashCode * randomPrime) ^ SynonymPlaceId.GetHashCode();
         return(hashCode);
     }
 }
Exemple #2
0
 public override int GetHashCode()
 {
     return(string.IsNullOrWhiteSpace(PlaceId) ? base.GetHashCode() : PlaceId.GetHashCode());
 }
 public override int GetHashCode()
 => (PlaceId == null ? 0 : PlaceId.GetHashCode()) ^ (PrimaryText == null ? 0 : PrimaryText.GetHashCode()) ^ (SecondaryText == null ? 0 : SecondaryText.GetHashCode());