Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 700231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:28:28+00:00 2026-05-14T03:28:28+00:00

My desktop application serializes objects using XmlSerializer . I was suggested to leverage DataContractSerializer

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:28:28+00:00Added an answer on May 14, 2026 at 3:28 am

    Dan Rigsby has the ultimate post on this – go read it!

    XmlSerializer vs. DataContractSerializer (web archive)

    He says all there is to say, and in a very convincing way.

    In short:

    XmlSerializer:

    • has been around for a long time
    • is “opt-out”; everything public gets serialized, unless you tell it not to ([XmlIgnore])

    DataContractSerializer is:

    • the new kid in town
    • optimized for speed (about 10% faster than XmlSerializer, typically)
    • “opt-in” – only stuff you specifically mark as [DataMember] will be serialized
    • but anything marked with [DataMember] will be serialized – whether it’s public or private
    • doesn’t support XML attributes (for speed reasons)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a desktop application using java + SWT/JFace, which I'm not very familiar.
We've developed a desktop application using .NetFX3.5 which has some winforms and two WPF
I have a DESKTOP application which interacts with a web service through their RESTful
I have a WPF Desktop application using Prism 4, in my bootstrapper i have
I want to build desktop application for Windows OS and use Google Drive to
I have created a desktop application which continuously changes the image on a fixed
I have a custom desktop application which invokes an ASMX web service. The Service
I am developing a desktop application using Qt (Pyside) and Python. Is there any
I have a Java desktop application, which needs to be updated with data from
I have a regular desktop application which is written in Python/GTK and SQLObject as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.