public XmlSerialization(Type messageType, Stream stream, object message, Conventions conventions, XmlSerializerCache cache, bool skipWrappingRawXml, string @namespace = DefaultNamespace)
{
this.messageType = messageType;
this.message = message;
this.conventions = conventions;
this.cache = cache;
this.skipWrappingRawXml = skipWrappingRawXml;
this.@namespace = @namespace;
writer = new RawXmlTextWriter(stream, new XmlWriterSettings
{
CloseOutput = false
});
}