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


Please Help Members By Posting Answers For Below Questions

Tell me what is three major points in wcf? : Wcf data services

423


Give the address format of all the bindings in wcf.

437


Explain the wcf ria?

460


What is the windows communication foundation?

475


How to define a service as rest based service in wcf?

462






How can we create proxy for the wcf service?

497


What are the core security features that wcf addresses?

460


What is InstanceContextMode in WCF?

522


What is the main advantage of was?

431


How many Instance modes is supported by WCF?

491


what is wcf peer network binding type? : Wcf data services

433


What is the usage of "maxconcurrentcalls" in throttling?

467


What is the difference between wcf service and web service?

471


What is datacontract?

475


How we can achieve operation overloading while exposing wcf services?

487