Share via


StreamReader.BaseStream Property

Returns the underlying stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual Stream BaseStream { get; }

Property Value

The underlying stream.

Remarks

StreamReader might buffer input such that the position of the underlying stream will not match the StreamReader position. The StreamReader constructors with the detectEncodingFromByteOrderMarks parameter can change the encoding the first time you read from the StreamReader object.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

StreamReader Class
StreamReader Members
System.IO Namespace