Returns the underlying stream.
[Visual Basic] Overridable Public ReadOnly Property BaseStream As Stream [C#] public Stream BaseStream {virtual get;} [C++] public: __property virtual Stream* get_BaseStream(); [JScript] public function get BaseStream() : Stream;
The underlying stream.
SwitchEncoding can change the encoding, under some complex conditions. Also, the StreamReader constructors with the detectEncodingFromByteOrderMarks parameter can change the encoding the first time you read from the StreamReader.
StreamReader Class | StreamReader Members | System.IO Namespace