コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (PlayerLatitude != 0D)
            {
                hash ^= PlayerLatitude.GetHashCode();
            }
            if (PlayerLongitude != 0D)
            {
                hash ^= PlayerLongitude.GetHashCode();
            }
            if (GymLatitude != 0D)
            {
                hash ^= GymLatitude.GetHashCode();
            }
            if (GymLongitude != 0D)
            {
                hash ^= GymLongitude.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (PlayerLatitude != 0D)
            {
                hash ^= PlayerLatitude.GetHashCode();
            }
            if (PlayerLongitude != 0D)
            {
                hash ^= PlayerLongitude.GetHashCode();
            }
            if (GymLatDegrees != 0D)
            {
                hash ^= GymLatDegrees.GetHashCode();
            }
            if (GymLngDegrees != 0D)
            {
                hash ^= GymLngDegrees.GetHashCode();
            }
            return(hash);
        }