public class Foo
{
public int Apple { get; set; }
public Foo(int apple)
{
Apple = apple;
}
}
Apple
1
2
3
throw CsvHelper.ReaderException,
System.Windows.Markup.XamlParseExceptionHeaderValidationException: Header with name 'apple'[0] was not found.
If the arguments in the constructor match the case of the fields in the CSV, then it works fine, but my CSV has Pascal-style fields and the constructor's formal parameters are usually camel-style, which makes it difficult.
throw
CsvHelper.ReaderException
,System.Windows.Markup.XamlParseException
HeaderValidationException: Header with name 'apple'[0] was not found.
If the arguments in the constructor match the case of the fields in the CSV, then it works fine, but my CSV has Pascal-style fields and the constructor's formal parameters are usually camel-style, which makes it difficult.