Dispose()

StreamWriter::Dispose() method

Releases all resources used by the current object and closes the undelying stream.

virtual void System::IO::TextWriter::Dispose() override

StreamWriter::Dispose(bool) method

Releases all resources used by the current object and closes the undelying stream.

virtual void System::IO::TextWriter::Dispose(bool disposing)

Arguments

ParameterTypeDescription
disposingboolSpecifies whether the undelying stream should be closed.

See Also