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

System.IO.TextReader.Close Method

Closes the current System.IO.TextReader instance and releases any system resources associated with it. [Edit]

public virtual void Close ()

Remarks

Note:

After a call to TextReader.Close , any IO operation on the current instance might throw an exception.

Operation
This method is equivalent to TextReader.Dispose(bool)( true ).

Usage
Use this method to close the current instance and free any resources associated with it.

[Edit]

Requirements

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