Web link proxy server is set in the field

I have a WCF service. And in my mobile application I created web links.

I noticed that for some fields, it also generates myFieldSpecified bool. For example, I have a Quantity class containing an int quantity. on the mobile side, it also generates a boolSpecified value.

What is the purpose of this field?

+3
source share
1 answer

This happens if the quantity field is not marked as mandatory for the service. A description of the service, than using this field as a NULL value, and the web link divides the nullable type into non nullable and bool, which indicates whether the field was specified.

+5
source

Source: https://habr.com/ru/post/1760741/


All Articles