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

Explain the role of WSDL in WCF?

0 Answers  


What are the attributes of Message Contract in WCF?

0 Answers   Viscus Infotech,


What are the different types of transaction managers supported by wcf?

0 Answers  


What is the transport and message reliability?

0 Answers  


Explain wcf contracts?

0 Answers  


Can you explain how end points, contract, address and bindings are done in wcf?

0 Answers  


How would you generate a proxy for wcf?

0 Answers  


What is REST and what is the problem with WCF REST and how it can be resolved?

0 Answers  


What are the different wcf binding available?

0 Answers  


How do wcf works?

0 Answers  


tell me what is service and client in perspective of data communication? : Wcf data services

0 Answers  


What are the essential components used in wcf?

0 Answers  


Categories