CsvHelper icon indicating copy to clipboard operation
CsvHelper copied to clipboard

CsvParser ignores leaveOpen parameter

Open hoppyluke opened this issue 8 years ago • 1 comments

I ran into an issue where the CsvParser closes the underlying stream even when leaveOpen is true.

Looks like the CsvParser(TextReader, bool) constructor (https://github.com/JoshClose/CsvHelper/blob/master/src/CsvHelper/CsvParser.cs#L54) always passes false into the underlying CsvFieldReader instead of passing through leaveOpen.

hoppyluke avatar May 11 '18 08:05 hoppyluke

Fix will be in version >= 9.0.1 on nuget.

JoshClose avatar Nov 12 '18 16:11 JoshClose