Click here to Skip to main content
15,911,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the difference between datacontract serialiser and datacontract.


which scenario we have to chooose!

Regards
JAmes
Posted

1 solution

This isn't an either/or question. The DataContract is what get serialized. The DataContractSerializer defines how the DataContract is serialized. For example, you might want it serialized as XML, Jason, odata etc.

IMO, unless you have a specific reason to change, just go with the default serializer.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900