wcf - Why should I use DataContract Serializer while I have XML/Binary serializer? -
Can anyone please tell me why I am already present in the XML / Binary Serializer. ?
This is a site that I was looking at on the same issue. You should check
Quoting from the link above:
The advantage of the data contrastraseilerizer on XMLSerializer
- Opt-in instead of opt-out properties To serialize
- Because it is in the opt-in, you can not only serial the properties, but also can field. You can also serial non-public members such as private or protected members. And you do not need to set up on any asset (though you can serial without a setter, but can not deserialize)
- About 10% of the XmlSerializer to serial the data,
- Understand SerializableAttribute and know that it should be serial
- More options and controls on KnownTypes
Hope it helps!
Comments
Post a Comment