This documentation is archived and is not being maintained.
.NET Framework 2.0
Implements a TextReader that reads characters from a byte stream in a particular encoding.
The following tables list the members exposed by the StreamReader type.
(see also Protected Methods )
|Close||Overridden. Closes the StreamReader object and the underlying stream, and releases any system resources associated with the reader.|
|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||Allows a StreamReader object to discard its current data.|
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (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.)|
|Peek||Overridden. Returns the next available character but does not consume it.|
|Read||Overloaded. Overridden. 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||Overridden. Reads a line of characters from the current stream and returns the data as a string.|
|ReadToEnd||Overridden. Reads the stream from the current position to the end of the stream.|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|Synchronized||Creates a thread-safe wrapper around the specified TextReader. (Inherited from TextReader.)|
|ToString||Returns a String that represents the current Object. (Inherited from Object.)|