.NET - Is it possible to use both XmlAnyElementAttribute and XmlSerializer.UnknownElement event within the same object
问题 I have a class in which I had to change te type of a property from a simple List<string> to a complex List<CustomObject> . My problem is that for some period of time, I will have people using the old and the new version of the software. Up until now, when I had contract changes, I simply used the UnknownElement event to map the old member to the new one since it was private files and it works perfectly for backward compatibility but broke the old version since it didn't write the old format