3
Answers

Closing Streams

jlousnhd

jlousnhd

20y
2.3k
1
If I create a BinaryWriter, BinaryReader, StreamReader or StreamWriter around a stream, do I have to close the reader/writer or can I just close the underlying stream? I know the underlying stream will be closed when the reader/writer is, but does the reader/writer need to be closed as long as the underlying stream is already closed?
Answers (3)