Mono Class Library: System.IO.StreamReader Overview | MembersSystem.IO.StreamReader Constructor |
Constructs and initializes a new instance of the System.IO.StreamReader class for the specified stream with the specified character encoding. [Edit]
|
- stream
- The System.IO.Stream to read. [Edit]
- encoding
- A System.Text.Encoding that specifies the character encoding to use. [Edit]
Type Reason ArgumentException stream does not support reading. [Edit] ArgumentNullException stream or encoding is null. [Edit]
This constructor initializes the StreamReader.CurrentEncoding property using encoding , the StreamReader.BaseStream property using stream , and the internal buffer to the default size.Note: The default buffer size is implementation defined.[Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0