Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DrinkId != 0)
            {
                hash ^= DrinkId.GetHashCode();
            }
            if (drink_ != null)
            {
                hash ^= Drink.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DrinkId != 0)
            {
                hash ^= DrinkId.GetHashCode();
            }
            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            return(hash);
        }