Dispose()

StreamReader::Dispose(bool) method

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

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

Arguments

ParameterTypeDescription
disposingboolSpecifies whether the undelying stream should be closed.

StreamReader::Dispose() method

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

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

See Also