XSerializer
XSerializer copied to clipboard
Add OmitXmlDeclaration to XmlSerializationOptions
It's an option with XmlWriterSettings, but I see no obvious way to do the same with XSerializer. It's useful when creating xml fragments, and when using the method "string Serialize(T instance)" encoding doesn't really have any meaning since it's all UTF-16.