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

            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (MaxCount != 0)
            {
                hash ^= MaxCount.GetHashCode();
            }
            hash ^= priceList_.GetHashCode();
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Index != 0)
            {
                hash ^= Index.GetHashCode();
            }
            if (MaxCount != 0)
            {
                hash ^= MaxCount.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= cards_.GetHashCode();
            return(hash);
        }