?

Log in

No account? Create an account

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

Tags

Latest Month

September 2017
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
Powered by LiveJournal.com