Differentiate between datacontractserializr and xmlserializer?
Answer Posted / sriyans sharma
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
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is overloading in wcf?
Can we have two way communications in msmq?
What is wcf web service (ws) binding type?
What is the "binding" property of endpoint in wcf?
What is a soa service?
Why do we use wcf services?
What is endpoint in wcf?
Why wcf service is used?
Exp wcf peer network binding type?
What is abc in wcf?
How many types of bindings are in WCF?
What are the various ways of hosting a wcf service?
What is callback mode in wcf?
Describe the various endpoints in wcf?
What is .net 3.0?