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 are the types of bindings in wcf?
Please explain different modes of security in wcf? Or explain the difference between transport and message level security.
Which are the different isolation levels in wcf?
What is the "contract" property of endpoint in wcf?
Why do we use wcf services?
What is msmq binding?
WCF:What is it the Teredo? How can we use it?
Explain service contracts?
Name the namespace that is used to access WCF service?
What are the transport schemas supported by wcf?
What is the transport and message reliability?
When is the msmqintegrationbinding?
What do you mean by client?
What are the various ways of hosting a wcf service?
explain service contracts? : Wcf data services