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

            if (CommodityId != 0)
            {
                hash ^= CommodityId.GetHashCode();
            }
            if (CommodityType != 0)
            {
                hash ^= CommodityType.GetHashCode();
            }
            if (ProductId.Length != 0)
            {
                hash ^= ProductId.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= Price.GetHashCode();
            }
            if (AmountRmb != 0D)
            {
                hash ^= AmountRmb.GetHashCode();
            }
            if (Currency.Length != 0)
            {
                hash ^= Currency.GetHashCode();
            }
            return(hash);
        }