public override int GetHashCode() { int hash = 1; if (ProductName.Length != 0) { hash ^= ProductName.GetHashCode(); } if (ProductType.Length != 0) { hash ^= ProductType.GetHashCode(); } if (ProductDesc.Length != 0) { hash ^= ProductDesc.GetHashCode(); } if (Price != 0) { hash ^= Price.GetHashCode(); } if (UserName.Length != 0) { hash ^= UserName.GetHashCode(); } if (UserWelcome.Length != 0) { hash ^= UserWelcome.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }