StreamWriter.Close()
just calls StreamWriter.Dispose()
under the bonnet, so they do exactly the same thing.
StreamWriter.Dispose()
does close the underlying stream.
Reflector is your friend for questions like this 🙂
StreamWriter.Close()
just calls StreamWriter.Dispose()
under the bonnet, so they do exactly the same thing.
StreamWriter.Dispose()
does close the underlying stream.
Reflector is your friend for questions like this 🙂