diff --git a/docs/getting-started/index.html b/docs/getting-started/index.html index 4df2d05e4..75d04f81a 100644 --- a/docs/getting-started/index.html +++ b/docs/getting-started/index.html @@ -29,7 +29,7 @@
In this case, the names are lower case. We want our property names to be Pascal Case, so we can just change how our properties match against the header names.
var config = new CsvConfiguration(CultureInfo.InvariantCulture)
{
- PrepareHeaderForMatch = (string header, int index) => header.ToLower(),
+ PrepareHeaderForMatch = args => args.Header.ToLower(),
};
using (var reader = new StreamReader("path\\to\\file.csv"))
using (var csv = new CsvReader(reader, config))
@@ -135,4 +135,4 @@ Package Manager Consol
allows you to write more things in the header if you need to. WriteRecord
also will not
advance you to the next row to give you the ability to write multiple objects or use
WriteField
to write individual fields.