This is my solution: just save the line in a text file or whatever you want it to be called.
Here is the usage:
var xmlString = XmlHelper.Serialize(myObject); var myNewObject = XmlHelper.Deserialize<myObjectType>(xmlString);
Here is the class:
public static class XmlHelper {
source share