Skip to content

Commit

Permalink
Merge pull request #2072 from luber/bugfix/#2066
Browse files Browse the repository at this point in the history
fix(CsvWriter): fix 'leaveOpen' parameter does not work
  • Loading branch information
JoshClose committed Nov 10, 2022
2 parents 90dcb88 + 91780cd commit 7a7a83d
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 @@ -88,7 +88,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 7a7a83d

Please sign in to comment.