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

            if (Sku.Length != 0)
            {
                hash ^= Sku.GetHashCode();
            }
            if (Category != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (SortOrder != 0)
            {
                hash ^= SortOrder.GetHashCode();
            }
            if (Hidden != false)
            {
                hash ^= Hidden.GetHashCode();
            }
            if (Sale != false)
            {
                hash ^= Sale.GetHashCode();
            }
            if (SpriteId.Length != 0)
            {
                hash ^= SpriteId.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }