Closes the current System.IO.StreamWriter and the underlying stream.
This method calls StreamWriter.Flush , writing buffered data to the underlying stream. Following a call to StreamWriter.Close, any operations on the current instance might raise exceptions.
Note:This version of StreamWriter.Close is equivalent to StreamWriter.Dispose(bool)(true).
This method overrides Stream.Close.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0