static LinePreservedTextWriter GetLinePreservedTextWriter(TextWriter w)
        {
            var tw = w as LinePreservedTextWriter;

            if (tw == null)
            {
                tw = new LinePreservedTextWriter(w);
            }
            return(tw);
        }
 internal LinePreservedXmlWriter(LinePreservedTextWriter w)
     : base(w)
 {
     this.tw = w;
 }