Skip to content

Commit

Permalink
fix(CsvWriter): fix 'leaveOpen' parameter does not work
Browse files Browse the repository at this point in the history
The field leaveOpen is not assigned in the CsvWriter constructor

fix #2066
  • Loading branch information
luber committed Nov 9, 2022
1 parent 701ede5 commit 91780cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CsvHelper/CsvWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class CsvWriter : IWriter
/// <param name="writer">The writer.</param>
/// <param name="culture">The culture.</param>
/// <param name="leaveOpen"><c>true</c> to leave the <see cref="TextWriter"/> open after the <see cref="CsvWriter"/> object is disposed, otherwise <c>false</c>.</param>
public CsvWriter(TextWriter writer, CultureInfo culture, bool leaveOpen = false) : this(writer, new CsvConfiguration(culture)) { }
public CsvWriter(TextWriter writer, CultureInfo culture, bool leaveOpen = false) : this(writer, new CsvConfiguration(culture), leaveOpen) { }

/// <summary>
/// Initializes a new instance of the <see cref="CsvWriter"/> class.
Expand Down

0 comments on commit 91780cd

Please sign in to comment.