Why a BinaryWriter closes the outer Stream on disposal, and how to prevent that? (.NET C#)
Asked 2009-07-05T20:55:29.967
30
I have one method that receives a Stream to write on it using a BinaryWriter. But when I dispose this BinaryWriter it also closes the stream. Can I leave it undisposed so I can leave my stream open?