Click below for Step by Step and Interview Q & A (dotnetinter) wrote,
Click below for Step by Step and Interview Q & A
dotnetinter

QuestPond’s Interview Questions & Answers on learning data contract serializer and XML serializer

What is the difference between data contract serializer and XML serializer?

XML Serializer

  • It follows the Opt-out approach. It means all the public properties get serialized. If you don’t want something you have to specify explicitly.

  • It serializes only properties and again only public properties with both get and set accessor.

Data contract serializer

  • It follows Opt-In approach. It means we have to explicitly specify what we want to serialize.

  • It can serialize nonpublic members and fields also.

For technical trainings on various topics like WCF, MVC, Business Intelligence, Design Patterns, WPF, TFS and Basic fundamentals feel free to contact SukeshMarla@Gmail.com or visit www.sukesh-marla.com

For more stuff like this, click here. Subscribe to article updates or follow at twitter @SukeshMarla

See following video on endpoints, address, contracts and bindings: -



Click and see here for more step by step learning on WCF(Windows Communication Foundation).
Tags: csharp interview questions, data contract serializer, it interview questions with answers, programming interview questions, step by step wcf, wcf, wcf interview questions, wcf training, windows communication foundation, xml serializer
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments