Mono Class Library: System.IO.StringReader Overview | Members

System.IO.StringReader.ReadToEnd Method

Returns the underlying string from the current position to the end.

public override string ReadToEnd ()

Returns

A string containing the content from the current position to the end of the underlying string.

Exceptions

TypeReason
ObjectDisposedExceptionThe current reader is closed.
OutOfMemoryExceptionThere is insufficient memory to allocate a buffer for the returned string.

Remarks

Note: This method overrides TextReader.ReadToEnd.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0