Click or drag to resize
StringReader Class
Implements a TextReader that reads from a string.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.IOTextReader
      System.IOStringReader

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

The StringReader type exposes the following members.

Methods
  NameDescription
Public methodDispose
Releases all resources used by the TextReader object.
(Inherited from TextReader.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TextReader and optionally releases the managed resources.
(Inherited from TextReader.)
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.
(Inherited from TextReader.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also