A System.IO.Stream, or null if the current instance does not use an underlying stream.
In the dnprdnext release, the recommended practice is to create System.Xml.XmlWriter instances using the erload:System.Xml.XmlWriter.Create method and the System.Xml.XmlWriterSettings class. This allows you to take full advantage of all the new features introduced in this release. For more information, see Creating XML Writers.
If the writer was constructed using a TextWriter that is derived from the StreamWriter class, this property is equivalent to the System.IO.StreamWriter.BaseStream property. If the writer was constructed using a System.IO.Stream, this property returns the Stream passed to the constructor. If the writer was constructed using a file name, this property returns the Stream representing the file.