How can I set a default value to a DataMember for example for the one shown below:
I want to set ScanDevice=\"XeroxScan\" by default
[DataMember]
If you want it always to default to XeroxScan, why not do something simple like:
[DataMember(EmitDefaultValue = false)] public string ScanDevice= "XeroxScan";