?

Log in

Previous Entry | Next Entry

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).
Copy right www.questpond.com

Buy 600+ Real Time Interview Videos

Call +91-22-66752917 or mail us on questpond@questpond.com for more details on C#, .NET, ASP.NET, SQL Server interview question videos.

SQL Server interview question videos

Latest Month

March 2017
S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Tags

Powered by LiveJournal.com