DataContractSerializer vs XmlSerializer: Pros and Cons of each serializer

Posted by Vitalie Climenco on Stack Overflow See other posts from Stack Overflow or by Vitalie Climenco
Published on 2010-03-24T06:31:29Z Indexed on 2010/03/24 6:33 UTC
Read the original article Hit count: 314

Filed under:
|

My desktop application serializes objects using XmlSerializer. I was suggested to leverage DataContractSerializer instead.
Under which scenarios should I use DataContractSerializer?

Many thanks

Comments.
1. The output XML file is stored locally. No other applications deserialize objects from that XML file.
2. My application runs with .NET Framework 3.5 SP1.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about serialization