Exemple #1
0
        /// <summary>
        /// Override GetHashCode for dish
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int hashCode = 256195580;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + Popularity.GetHashCode();
            hashCode = hashCode * -1521134295 + IdType.GetHashCode();
            return(hashCode);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CardId != 0)
            {
                hash ^= CardId.GetHashCode();
            }
            if (Player != 0)
            {
                hash ^= Player.GetHashCode();
            }
            if (Credit != 0)
            {
                hash ^= Credit.GetHashCode();
            }
            if (Singing != 0)
            {
                hash ^= Singing.GetHashCode();
            }
            if (Dancing != 0)
            {
                hash ^= Dancing.GetHashCode();
            }
            if (Composing != 0)
            {
                hash ^= Composing.GetHashCode();
            }
            if (Popularity != 0)
            {
                hash ^= Popularity.GetHashCode();
            }
            if (Charm != 0)
            {
                hash ^= Charm.GetHashCode();
            }
            if (Perseverance != 0)
            {
                hash ^= Perseverance.GetHashCode();
            }
            if (Puzzle != 0)
            {
                hash ^= Puzzle.GetHashCode();
            }
            if (CardName.Length != 0)
            {
                hash ^= CardName.GetHashCode();
            }
            if (Gold != 0)
            {
                hash ^= Gold.GetHashCode();
            }
            if (GrowthRateS != 0F)
            {
                hash ^= GrowthRateS.GetHashCode();
            }
            if (GrowthRateD != 0F)
            {
                hash ^= GrowthRateD.GetHashCode();
            }
            if (GrowthRateC != 0F)
            {
                hash ^= GrowthRateC.GetHashCode();
            }
            if (GrowthRatePo != 0F)
            {
                hash ^= GrowthRatePo.GetHashCode();
            }
            if (GrowthRateCh != 0F)
            {
                hash ^= GrowthRateCh.GetHashCode();
            }
            if (GrowthRatePe != 0F)
            {
                hash ^= GrowthRatePe.GetHashCode();
            }
            hash ^= gainSceneIds_.GetHashCode();
            hash ^= evoSceneIds_.GetHashCode();
            if (NewViewEvo != 0)
            {
                hash ^= NewViewEvo.GetHashCode();
            }
            if (MemoriesItem != 0)
            {
                hash ^= MemoriesItem.GetHashCode();
            }
            if (Used != 0)
            {
                hash ^= Used.GetHashCode();
            }
            return(hash);
        }