Add unit test to make sure the new functionality works
Add ToString() method in TypeFieldInfo class for better debugging
A few important things:
There was an existing (undocumented) IgnoreMissingColumns field, used mainly for UseFieldIndexForReadingData. It was renamed to IgnoreUnknownColumns, since the purpose of IgnoreMissingColumns is covered by IgnoreUnknownColumns now, to avoid having duplicate fields.
The entire code probably needs to be refactored at some point in the future, so more unit tests will be required. If we keep adding properties to the CsvFileDescription class, the code might become kind of an spaguetti one.
Thanks Oscar, I've accepted your pull request. It is now on Nuget as version 1.5.0. and the article on the CodeProject has been updated as well with your changes.
Adds feature discussed in #9.
article.htm
to document the changesTypeFieldInfo
class for better debuggingA few important things:
IgnoreMissingColumns
field, used mainly forUseFieldIndexForReadingData
. It was renamed toIgnoreUnknownColumns
, since the purpose ofIgnoreMissingColumns
is covered byIgnoreUnknownColumns
now, to avoid having duplicate fields.CsvFileDescription
class, the code might become kind of an spaguetti one.