StreamReader Class |
Namespace: System.IO
[SerializableAttribute] public class StreamReader : TextReader
The StreamReader type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by the TextReader object. (Inherited from TextReader.) |
![]() | Dispose(Boolean) | Closes the underlying stream, releases the unmanaged resources used by the StreamReader, and optionally releases the managed resources. (Overrides TextReaderDispose(Boolean).) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReadLine | Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReaderReadLine.) |
![]() | ReadToEnd | Reads the stream from the current position to the end of the stream. (Overrides TextReaderReadToEnd.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | EndOfStream | Gets a value that indicates whether the current stream position is at the end of the stream. |