Serialize Object to string public static string Serialize(object o, Type T)
{
//this avoids xml document declaration
XmlWriterSettings settings = new XmlWriterSettings()
{
Indent = false,
OmitXmlDeclaration = true
};
var stream = new MemoryStream();
using (XmlWriter xw = XmlWriter.Create(stream, settings))
{
//this avoids xml namespace declarati
Leggi tutto il post...