Hi, Im doing some stuff with WebResponse and its response stream. Ive created a wrapper class that copies the stream into its own stream so that it can be able to seek through the stream.
I accomlish that by creating StreamWriter which writes data from the original stream to my stream. However, if I close the StreamWriter at the end, it also closes the underlying stream. Nobody can take that stream and read it then.
So, is it ok to let the StreamWriter open so that the stream also stays open?
Thanks
I accomlish that by creating StreamWriter which writes data from the original stream to my stream. However, if I close the StreamWriter at the end, it also closes the underlying stream. Nobody can take that stream and read it then.
So, is it ok to let the StreamWriter open so that the stream also stays open?
Thanks