Using CsvHelper can I translate white space to a nullable?
问题 I have some really lame Csv files I need to parse. I am using CsvHelper and it is working awesome. Except I have some lines that have whitespace where normaly I have a double. File: Text,SomeDouble,MoreText "Good",1.23,"Good" "Bad", ,"Bad" if I try and map this into public class Test { [CsvField(Name = "Text")] public string Text { get; set; } [CsvField(Name = "SomeDouble")] public double? SomeDouble{ get; set; } [CsvField(Name = "MoreText")] public string MoreText{ get; set; } } then I get