Share via


TextReader Members

The following tables list the members exposed by the TextReader type.

Public Constructors

Name Description
Public Method TextReader Initializes a new instance of the TextReader class.

Public Methods

Name Description
Public Method Close Closes the TextReader and releases any system resources associated with the TextReader.
Public Method Dispose Releases all resources used by the TextReader object and optionally releases the managed resources.
Public Method Peek Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.
Public Method Read Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
Public Method ReadBlock Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.
Public Method ReadLine Reads a line of characters from the current stream and returns the data as a string.
Public Method ReadToEnd Reads all characters from the current position to the end of the TextReader and returns them as one string.

See Also

Reference

TextReader Class
System.IO Namespace