XSerializer icon indicating copy to clipboard operation
XSerializer copied to clipboard

Add OmitXmlDeclaration to XmlSerializationOptions

Open graemejob opened this issue 4 years ago • 0 comments

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.

graemejob avatar Mar 16 '21 14:03 graemejob