I am creating a Portable Class Library targeting .Net 4.5+, Silverlight 5+, and Windows 8+ Store Apps. This library includes Model objects that will be serialized and deserialized into files for transport between implementing applications. While Portable Class Libraries support DataContractAttribute
and DataContractSerializer
, they do not support IExtensibleDataObject
- which is recommended for Forward-Compatible Data Contracts (MSDN article).
I am almost certain that the model objects will change over time. What can I do to keep serialization/deserialization with DataContractSerializer
from failing at the least, but also prevent loss of information in a round-trip operation? Thanks for any advice!