JoshClose/CsvHelper — Issue #27: csvHelper.Reader.Configuration.Delimiter doesn't set.
Author: eaydemir
Created: 2012-03-09 15:08:46+00:00
State: open

i have csv file like :

column1;column2;column3
rec11;rec12;rec13
rec21;rec22;rec23
rec31;rec32;rec33

İ use csvHelper like that:

FileStream fs = new FileStream("fileName.csv", FileMode.Open);
CsvHelper.CsvHelper csv = new CsvHelper.CsvHelper(fs);
csv.Reader.Configuration.Delimiter = ';'; csv.Configuration.Delimiter = ';';
List records = csv.Reader.GetRecords().ToList(); // Result: three record and all is empty. i look at debug mode csv.Reader.Parser.Configuration.Delimiter is ',' how i can this -delimiter- change. csv.Reader.Parser is non-public.

entityRec is :

public class EmailReportDelivery
{
[CsvField(Name = "column1")]
public string col1 { get; set; }

[CsvField(Name = "column2")]
public string col2 { get; set; }

[CsvField(Name = "column3")]
public string col3 { get; set; }
}