I do not see anything wrong with your code. I just checked: the following program works fine:
[DelimitedRecord(",")] public class MyClass { public string Field1; [FieldQuoted('"', QuoteMode.OptionalForBoth, MultilineMode.AllowForRead)] public string ExchangeRate; public string Field3; } class Program { static void Main(string[] args) { var engine = new FileHelperEngine<MyClass>(); string fileAsString = @"a,b,c" + Environment.NewLine + @"a,b,c" + Environment.NewLine + @"a,""b,c"",d"; MyClass[] validRecords = engine.ReadString(fileAsString);
shamp00
source share