Mono Class Library: System.IO.StreamReader Overview | Members

System.IO.StreamReader Constructor

Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream. [Edit]

public StreamReader (Stream stream)

Parameters

stream
The System.IO.Stream to read. [Edit]

Exceptions

TypeReason
ArgumentExceptionstream does not support reading. [Edit]
ArgumentNullExceptionstream is null. [Edit]

Remarks

This constructor initializes the StreamReader.CurrentEncoding property to System.Text.UTF8Encoding, the StreamReader.BaseStream property using stream , and the internal buffer to the default size.
Note: The default buffer size is implementation dependent.
[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0