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

System.IO.StringReader.ReadToEnd Method

Returns the underlying string from the current position to the end. [Edit]

public override string ReadToEnd ()

Returns

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

Exceptions

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

Remarks

Note: This method overrides TextReader.ReadToEnd.
[Edit]

Requirements

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