System.IO.StringReader Members

The members of System.IO.StringReader are listed below.

See Also: Inherited members from System.IO.TextReader

Public Constructors

Initializes a new instance of the System.IO.StringReader class that reads from the specified string.

Public Methods

override
Close()

Closes the System.IO.StringReader.

override
Peek() : int

Returns the next available character but does not consume it.

override
Read() : int

Reads the next character from the input string and advances the character position by one character.

override
Read(char[], int, int) : int

Reads a block of characters from the input string and advances the character position by count.

override
ReadAsync(char[], int, int) : System.Threading.Tasks.Task<int>

Reads a specified maximum number of characters from the current string asynchronously and writes the data to a buffer, beginning at the specified index.

override
ReadBlockAsync(char[], int, int) : System.Threading.Tasks.Task<int>

Reads a specified maximum number of characters from the current string asynchronously and writes the data to a buffer, beginning at the specified index.

override
ReadLine() : string

Reads a line of characters from the current string and returns the data as a string.

override
ReadLineAsync() : System.Threading.Tasks.Task<string>

Reads a line of characters asynchronously from the current string and returns the data as a string.

override
ReadToEnd() : string

Reads all characters from the current position to the end of the string and returns them as a single string.

override
ReadToEndAsync() : System.Threading.Tasks.Task<string>

Reads all characters from the current position to the end of the string asynchronously and returns them as a single string.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.IO.StringReader and optionally releases the managed resources.