I am trying to wrap my head around serialization. But what happens if for whatever reasons I need to add or remove some values or properties? How will this affect the contents? Or is this not an issue? Or how can I avoid this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
As people already pointed out, it depends on your serializer.
XmlSerializeris somewhat easier to handle in this case:Consider Jon’s anwer for more tips, especially with
NonSerializedandOptionalFieldattributes.