Replies: 1 comment
-
var config = new CsvConfiguration(CultureInfo.InvariantCulture)
{
HeaderValidated = null,
MissingFieldFound = null,
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the past versions of CsvHelper (ver 12) one could null out things in the CsvReader's Configuration object and read records that didn't match the ClassMap. For instance, one teammember of mine writes:
...and that was enough to make CSVReader able to read records that had extra columns; however, with this new CsvHelper release (ver 27) the Configuration has private sets and readonlys now - I can't turn Validation Off like my teammember intended. What am I missing here? Were they using CSVReader wrong?
Beta Was this translation helpful? Give feedback.
All reactions