I don't think this is supposed to work, but I did find that just setting BadDataFound = null
worked with the latest version of CsvHelper and your example data.
It doesn't, however, work if "text" has line breaks or semicolon in it.
void Main()
{
var config = new CsvConfiguration(CultureInfo.InvariantCulture)
{
BadDataFound = null,
Delimiter = ";"
};
using(var reader = new StringReader("col_a;col_b;col_c;col_json
0.0;-1;0;{"t": 1598270895, "text": "hello world"}"))
using(var csv = new CsvReader(reader, config))
{
using (var dr = new CsvDataReader(csv))
{
var dt = new DataTable();
dt.Load(dr);
dt.Dump();
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…