Click or drag to resize
TextReader Class
Represents a reader that can read a sequential series of characters.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.IOTextReader
      System.IOStreamReader
      System.IOStringReader

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class TextReader : MarshalByRefObject, 
	IDisposable

The TextReader type exposes the following members.

Methods
  NameDescription
Public methodDispose
Releases all resources used by the TextReader object.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TextReader and optionally releases the managed resources.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadToEnd
Reads all characters from the current position to the end of the TextReader and returns them as one string.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberNull
Provides a TextReader with no data to read from.
Top
See Also