System.IO.TextReader Class
Represents an object that can read a sequential series of characters.

See Also: TextReader Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public abstract class TextReader : MarshalByRefObject, IDisposable

Remarks

System.IO.TextReader is designed for character input, whereas the System.IO.StreamReader is designed for byte input and the System.IO.StringReader class is designed for reading from a string.

By default, a System.IO.TextReader is not thread safe. For information on creating a thread-safe System.IO.TextReader , see TextReader.Synchronized(TextReader) .

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

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