pdi*_*ddy 3 .net c# wcf web-services asmx
我有一个WCF服务.在我的移动应用程序中,我生成了一个Web引用.
我注意到,对于某些字段,它还会生成一个myFieldSpecified bool.例如,我有一个包含int数量的 Quantity类.在移动端,它还生成一个bool quantitySpecified.
这个指定领域的目的是什么?
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.