Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web reference proxy is field specified

I have a WCF service. And in my mobile application I generated a Web References.

I notice that for some fields it also generates a myFieldSpecified bool. For example, i have a class Quantity that contains an int quantity. on the mobile side it also generates a bool quantitySpecified.

What is the purpose of this specified field?

like image 260
pdiddy Avatar asked Apr 08 '26 12:04

pdiddy


1 Answers

This happens if quantity field is not marked as required on the service. Service description than uses this field as nullable and web reference divide the nullable type into non nullable and bool which is saying if field was specified.

like image 55
Ladislav Mrnka Avatar answered Apr 11 '26 01:04

Ladislav Mrnka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!