Mono Class Library: System.IO.StreamWriter Overview | MembersSystem.IO.StreamWriter.Close Method |
Closes the current System.IO.StreamWriter and the underlying stream. [Edit]
|
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:[Edit]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