Quick question about using nested disposables in a single \'using\' statement: Should I write out each disposable\'s using statement, or can I nest them into one? Example:>
if when the block is done executing, the unnamed FileStream from "myFile.txt" gets cleaned up because it's in the using statement with the GZipStream
Even when both constructors succeed, it still depends on the design of the 'owning' class. A StreamReader will close its BaseStream but many other classes won't.
You don't want your code to depend on such murky and liable to change details.