System.Xml.Xsl.Runtime.XmlQueryOutput.SetWrappedWriter C# (CSharp) Method

SetWrappedWriter() private method

This method will be called if "xwrt" is a writer which no longer needs to be part of the pipeline and wishes to replace itself with a different writer. For example, the auto-detect writer replaces itself with the Html or Xml writer once it has determined which output mode to use.
private SetWrappedWriter ( XmlRawWriter writer ) : void
writer System.Xml.XmlRawWriter
return void
        private void SetWrappedWriter(XmlRawWriter writer) {
            // Reuse XmlAttributeCache so that it doesn't have to be recreated every time
            if (Writer is XmlAttributeCache)
                this.attrCache = (XmlAttributeCache) Writer;

            Writer = writer;
        }