What I have is a custom settings file that I serialize/deserialize using an XmlSerializer
. I have no schema defined and no serialization tags in my object definition, just straight object serialization (although I will add them if needed).
My issue is that I need to add data members to the object. If I do that I know that the old settings file will not deserialize.
Is there a way to specify default values for the added members or some simple way to ignore them if they are missing from the XML?
It should deserialize just fine, it will just use the default constructor to initialize the items. So they will remain unchanged.