Closed coxymla closed 7 years ago
I just looked up the code in CsvReader. I could not find a constructor with a leaveOpen-flag. So every instance is is always tracking the given stream. It should be no problem at all.
Thanks reporting!
Will be part of release 0.30
Prerequisites
Description
CsvReader has a constructor that takes in a stream. When the CsvReader is disposed, the stream is disposed. Currently DisposableFixer detects the anonymous stream as not being disposed. It would be great if it was added to the whitelist.
Source Code
using (var csv = new CsvReader(new StreamReader(outputFilename), false)) { // do stuff }
Screenshot