Skip to content

Conversation

@omerbenda
Copy link

@omerbenda omerbenda commented Dec 16, 2025

Fixes #2368

Changes

  • Add methods for the GetRecords methods for reading without skipping over the headers if the ShouldSkipRecord config is enabled

@omerbenda omerbenda changed the title Fix Add a read method to read without skipping headers Fix skipping over headers Dec 16, 2025
/// for the headers to be read.
/// </summary>
/// <returns>True if there are more records, otherwise false.</returns>
public virtual bool PreHeaderRead()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code inside the methods PreHeaderRead & PreHeaderReadAsync almost same except the first line of both the methods. Can we move rest of the lines to a private sub method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CsvReader.GetRecords with ShouldSkipRecord may skip the header row

2 participants