CsvHelper Parsing boolean from String
问题 I'm currently trying to parse a value from a csv file that is a boolean. We've noticed that the value will successfully parse Yes and Y (in any case) but will not parse No and N I'm mapping the value in the classmap like this: Map(m => m.Enabled).Name("Enabled").TypeConverterOption(false, string.Empty); Is there a reason why this would read Yes but not No and is there a way to add the ability to parse no ? 回答1: In version 4.0.3, this works. void Main() { using (var stream = new MemoryStream()