Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ItemId != 0)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (IncubatorType != 0)
            {
                hash ^= IncubatorType.GetHashCode();
            }
            if (UsesRemaining != 0)
            {
                hash ^= UsesRemaining.GetHashCode();
            }
            if (PokemonId != 0UL)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (StartKmWalked != 0D)
            {
                hash ^= StartKmWalked.GetHashCode();
            }
            if (TargetKmWalked != 0D)
            {
                hash ^= TargetKmWalked.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0UL)
            {
                hash ^= Id.GetHashCode();
            }
            if (StartKmWalked != 0D)
            {
                hash ^= StartKmWalked.GetHashCode();
            }
            if (LastKmAwarded != 0D)
            {
                hash ^= LastKmAwarded.GetHashCode();
            }
            return(hash);
        }