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

  1. Opt-in instead of opt-out properties To serialize
  2. 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)
  3. About 10% of the XmlSerializer to serial the data,
  4. Understand SerializableAttribute and know that it should be serial
  5. More options and controls on KnownTypes

Hope it helps!


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -