Both BinaryReader
constructors require a stream parameter. If I need to keep the underlying stream as-is when I'm done with the BinaryReader
, should I still call its Dispose()
? If not, is there any other clean-up for the no longer needed BinaryReader
?
I'm asking because I can't find a clear answer on MSDN page for BinaryReader.Dispose()
.
Small addtion
In my context I use the BinaryReader
to read a couple of bytes, after which I set the position of the stream back to what it was before the BinaryReader
was initialized.
Also, I'm using .Net 4.