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 the transport and message reliability?

0 Answers  


Give an example of knowtype.

0 Answers  


What is the main advantage of was?

0 Answers  


Explain what is datacontract and servicecontract?

0 Answers  


What are the core components of wcf service?

0 Answers  






Differentiate between datacontractserializr and xmlserializer?

1 Answers  


What are different elements of wcf services client configuration file?

0 Answers  


what is msmq binding? : Wcf data services

0 Answers  


tell me what is proxy and how to generate proxy for wcf services? : Wcf data services

0 Answers  


What is wcf api?

0 Answers  


Explain about contracts?

0 Answers  


What are the types of contract available in wcf?

0 Answers  


Categories