Best alternative for .NET nullable value type for Java-consumable service -


We are building some WCF services which will initially be consumed by net clients, but in the future Java clients will be consumed.

As we would like to avoid using any data type in the interface, which does not support Java.

We know that the specific one is a worthless price type.

> One suggestion is that we can support them by using a string to represent, for example, a null qualified int and empty string represents zero, otherwise a requirement That string should be a purse in the form of an integer.

Can someone recommend a better option, or what will you do?

NumProperty and NumPropertyIsNull . It was not particularly beautiful, but it worked.

As a side node, I think that in the end we could not find a single business case, where actually 0 and null


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -