DataContractSerializer
- Is meant to be used for serialization/deserialization of class in WCF service to and from either JSON or XML.
- serializes properties and fields.
- Is faster than XmlSerializer
- Doesn't control how xml is generated. Should not be used when full control on generated XML structure is required
XMLSerializer
- XmlSerializer is only for XML serialization
- Supports full control over the XML structure
- Serializes only public properties
0 comments:
Post a Comment