示例#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);
        }
        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 ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StartKmWalked);
            }
            if (TargetKmWalked != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetKmWalked);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }