StreamReader Methods
.NET Framework 3.5
The StreamReader type exposes the following members.
| Name | Description | |
|---|---|---|
|
Close | Closes the StreamReader object and the underlying stream, and releases any system resources associated with the reader. (Overrides TextReader.Close().) |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
DiscardBufferedData | Clears the internal buffer. |
|
Dispose | Overloaded. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
MemberwiseClone | Overloaded. |
|
Peek | Returns the next available character but does not consume it. (Overrides TextReader.Peek().) |
|
Read | Overloaded. Reads the next character or next set of characters from the input stream. |
|
ReadBlock | Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index. (Inherited from TextReader.) |
|
ReadLine | Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine().) |
|
ReadToEnd | Reads the stream from the current position to the end of the stream. (Overrides TextReader.ReadToEnd().) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IDisposable.Dispose | For a description of this member, see IDisposable.Dispose. (Inherited from TextReader.) |