Differentiate between datacontractserializr and xmlserializer?



Differentiate between datacontractserializr and xmlserializer?..

Answer / 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

More WCF Interview Questions

What is msmq binding?

0 Answers  


What is wcf wpf wwf in net?

0 Answers  


Which are the 3 types of transactions manager wcf supports?

0 Answers  


What is the use of sessionmode?

0 Answers  


List some of the different ways of hosting?

0 Answers  






What does a windows communication foundation, or wcf, service application use to present exception information to clients by default?

0 Answers  


Explain abcs of endpoint?

0 Answers  


What is the difference between web service and wcf service?

0 Answers  


Which bindings are used for metadata configuration in wcf?

0 Answers  


What is the request-reply mode in wcf?

0 Answers  


How many Instance modes is supported by WCF?

0 Answers  


WCF:Is there an error in the Msmq address the "net.msmq://MyHost/private$/MyQueue"?

4 Answers  


Categories