Describe the bug When initialising a CsvConfiguration using the constructor you are unable to set MissingFieldFound to null. To Reproduce Steps to reproduce the behavior: var csvReaderConfiguration = new CsvHelper.Configuration.CsvConfiguration( cultureInfo: CultureInfo.InvariantCulture, missingFieldFound: ...
你这样做没有什么不对的,这里有一个完整的例子
OpenText(path)) { using (var csv = new CsvHelper.CsvReader(fileReader)) { csv.Configuration.RegisterClassMap<PersonMapper>(); csv.Configuration.HasHeaderRecord = true; csv.Configuration.MissingFieldFound = null; var records = csv.GetRecords<Person>().ToList(); } } } } [Serializable] public...