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

            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (TimesEncountered != 0)
            {
                hash ^= TimesEncountered.GetHashCode();
            }
            if (TimesCaptured != 0)
            {
                hash ^= TimesCaptured.GetHashCode();
            }
            if (EvolutionStonePieces != 0)
            {
                hash ^= EvolutionStonePieces.GetHashCode();
            }
            if (EvolutionStones != 0)
            {
                hash ^= EvolutionStones.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (TimesEncountered != 0)
            {
                hash ^= TimesEncountered.GetHashCode();
            }
            if (TimesCaptured != 0)
            {
                hash ^= TimesCaptured.GetHashCode();
            }
            if (EvolutionStonePieces != 0)
            {
                hash ^= EvolutionStonePieces.GetHashCode();
            }
            if (EvolutionStones != 0)
            {
                hash ^= EvolutionStones.GetHashCode();
            }
            hash ^= capturedCostumes_.GetHashCode();
            hash ^= capturedForms_.GetHashCode();
            hash ^= capturedGenders_.GetHashCode();
            if (CapturedShiny != false)
            {
                hash ^= CapturedShiny.GetHashCode();
            }
            hash ^= encounteredCostumes_.GetHashCode();
            hash ^= encounteredForms_.GetHashCode();
            hash ^= encounteredGenders_.GetHashCode();
            if (EncounteredShiny != false)
            {
                hash ^= EncounteredShiny.GetHashCode();
            }
            if (TimesLuckyReceived != 0)
            {
                hash ^= TimesLuckyReceived.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }