Is there a clever way of adding XML serialization instructions without modifying the serialized class?
I don’t like the default serialization and I can’t modify the class. I was considering inheriting the class, and using Shadows (VB.NET) to re-implement the properties (with the serialization instructions), but it results in a lot of duplicate code and just looks terrible.
The ideal solution I'm looking for is basically a method to keep all the serialization instructions in a separate file.