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

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

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