Data member default values, how to figure out whether something was really sent?
问题 By default, WCF deserializes missing elements into default values like null, 0 or false. The problem with this approach is that if it's a basic type like number 0 I'm not sure whether it means the real value sent by an external system or a default value generated by WCF. So my question is: Is it possible to find out at run-time whether the default value means "I didn't send anything". This is crucial because we can't update and overwrite existing data in the database with the default values