I am using CSVHelper libraries of version 2.7.1. I want to read CSV values when the header is present in lowercase. I am reading CSV below
sr = new StreamReader(fs);
using (CsvReader csvReader = new CsvReader(sr))
{
csvReader.Configuration.HasHeaderRecord = hasHeaderRecord;
csvReader.Configuration.IgnoreBlankLines = false;
csvReader.Configuration.IgnoreReadingExceptions = true;
csvReader.Configuration.WillThrowOnMissingField = false;
csvReader.Configuration.TrimFields = true;
csvReader.Configuration.RegisterClassMap();
FileRecords = csvReader.GetRecords().ToList();
}
how to read CSV values with the lower (or) upper case? Can we do without upgrading to the latest CSVHelper packages?