StreamReader Members
The following tables list the members exposed by the StreamReader type.
Public Constructors
| Name | Description | |
|---|---|---|
![]() |
StreamReader | Initializes a new instance of the StreamReader class for the specified stream. |
Public Fields
| Name | Description | |
|---|---|---|
![]() |
Null | Specifies a null stream. |
Public Properties
| Name | Description | |
|---|---|---|
![]() |
BaseStream | Returns the underlying stream. |
![]() |
CurrentEncoding | Gets the current character encoding that the current StreamReader object is using. |
![]() |
EndOfStream | Indicates whether the current stream position is at the end of the stream. |
Public Methods
| Name | Description | |
|---|---|---|
![]() |
Close | Closes the stream. |
![]() |
DiscardBufferedData | Allows a StreamReader object to discard its current data. |
![]() |
Peek | Returns the next available character but does not consume it. |
![]() |
Read | Overloaded. Reads characters from the stream. |
![]() |
ReadLine | Reads a line of characters from the current stream and returns the data as a string. |
Protected Methods
| Name | Description | |
|---|---|---|
![]() |
Dispose | Closes the stream, releases the unmanaged resources used by the StreamReader object, and optionally releases the managed resources. |
.gif)
.gif)
.gif)
.gif)