Skip to content

Commit

Permalink
Add leaveOpen parameter to the CsvReader constructor IReaderConfigura…
Browse files Browse the repository at this point in the history
…tion overload
  • Loading branch information
crozone committed Nov 10, 2022
1 parent 72db5e1 commit b80837b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CsvHelper/CsvReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public CsvReader(TextReader reader, CultureInfo culture, bool leaveOpen = false)
/// </summary>
/// <param name="reader">The reader.</param>
/// <param name="configuration">The configuration.</param>
public CsvReader(TextReader reader, IReaderConfiguration configuration) : this(new CsvParser(reader, configuration)) { }
/// <param name="leaveOpen"><c>true</c> to leave the <see cref="TextReader"/> open after the <see cref="CsvReader"/> object is disposed, otherwise <c>false</c>.</param>
public CsvReader(TextReader reader, IReaderConfiguration configuration, bool leaveOpen = false) : this(new CsvParser(reader, configuration, leaveOpen)) { }

/// <summary>
/// Creates a new CSV reader using the given <see cref="IParser" />.
Expand Down

0 comments on commit b80837b

Please sign in to comment.