AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 286 forks source link

Added XElement support to the serializer #861

Closed Barsonax closed 4 years ago

Barsonax commented 4 years ago

Serializing and deserializing XElement did not work properly before. This PR adds a XElementSurrogate which allows all serializers in duality to properly handle XElement.

Additionally XmlSerializer has a small extra modification to make the serialized xml more readable, without this change the serialized xml would end up as a base64 string.

TODO