Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GoodsSn.Length != 0)
            {
                hash ^= GoodsSn.GetHashCode();
            }
            if (GoodsName.Length != 0)
            {
                hash ^= GoodsName.GetHashCode();
            }
            if (Qty != 0)
            {
                hash ^= Qty.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }