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 201913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:14:27+00:00 2026-05-11T17:14:27+00:00

I was reading Microsoft’s Best Practices: Data Contract Versioning , and they state: Do

  • 0

I was reading Microsoft’s Best Practices: Data Contract Versioning, and they state:

Do not remove data members in later versions, even if the IsRequired property was left at its default property of false in prior versions.

Can anyone suggest any reason for this? They don’t elaborate. Since they say it’s fine to add data members in a later version, it seems that removing would be fine too — effectively, the older version would see it as an add.

The difference, I suppose, is that you’re supposed to add new members at the end (using the Order property on the DataMemberAttribute), whereas the property getting removed would probably not be at the end. But they also say that missing members will be left at their default value during loading, so it’s clear that missing members are OK.

What am I missing? What version-interop problems would I cause (both forward-compatibility and backward-compatibility) if I obsoleted a feature of my product and removed the [DataMember] property that goes with it?

Also, if I decided that I wasn’t interested in forward-compatibility (i.e., if I wasn’t concerned about older versions opening newer files), would any such problems still apply?

  • 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-11T17:14:27+00:00Added an answer on May 11, 2026 at 5:14 pm

    Simply because outside service consumers may provide/use that data (they were created before you removed some members). In case you’ve changed service method signature, DataContractSerializer won’t be able to recognize DataContract anymore, because of unknown data members.

    So if your service consumers are all known, you can easily manipulate data members at your own will as long as you:

    • don’t break consumers or
    • properly inform them of the change
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reading data from a serial port. I read this posting: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/a709d698-5099-4e37-9e10-f66ff22cdd1e He is
Is Microsoft discontinuing the Visual Studio Installer or not? Somewhere I remember reading that
I am reading Excel worksheet data using C# and Microsoft.Office.Interop. The sheet contains some
I'm using the Microsoft.Practices.EnterpriseLibrary.Data library to establish a database connection. I suspect that that
Error while reading Excel sheet from C#: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source
Reading Microsoft's documentation on RegOpenKeyEx and RegCloseKey I am unsure of whether or not
I know from reading Microsoft documentation that the "primary" use of the IDisposable interface
I was reading the following article: http://msdn.microsoft.com/en-us/magazine/cc817398.aspx Solving 11 Likely Problems In Your Multithreaded
I was reading over the documentation for query hints: http://msdn.microsoft.com/en-us/library/ms181714(SQL.90).aspx And noticed this: FAST
I noticed the existence of Microsoft.VisualStudio.TestTools.UnitTesting.PriorityAttribute. From reading a little about it, it does

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.