Ignore specified members field when serialise to Json string
I have a generated WCF client with class similar to the sample below In my unit test, I instantiate an instance of SampleClass with a value of Cost field but without setting the CostFieldSpecified to true. When I serialise it to Json string, the Cost field’s value is 0 instead of the value I set … [Read more…]