TextWriter.Dispose Method
Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual void Dispose (
booldisposing
)
Parameters
- disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks
This method is called by Dispose and Finalize. By default, this method specifies the disposing parameter as true. Finalize specifies the disposing parameter as false.
When the disposing parameter is true, this method releases all resources held by any managed objects that this TextWriter references. This method invokes the Dispose method of each referenced object.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.