LinqToCSV seems to be adding quotes around empty strings Is there a setting to turn this off ? Could not find anything in the documentation. Also tried sending null values instead of empty strings.. same result
this is a sample CSV output generated using LinqToCSV. Columns 5,6,7 are empty strings.. they turn out to be quoted strings in final CSV output
3223,2876,5591,9171068,"","","",10000442,A1,"",012000016431,2.50,8,0,8,20150108224612 3223,2876,5591,9171068,"","","",10000442,A2,"",012000016431,2.50,8,0,8,20150108224612 3223,2876,5591,9171068,"","","",10000442,A3,"",012000043000,1.75,8,0,8,20150108224612 3223,2876,5591,9171068,"","","",10000442,A4,"",012000043000,1.75,8,0,8,20150108224612 3223,2876,5591,9171068,"","","",10000442,A5,"",012000043000,1.75,8,0,8,20150108224612 3223,2876,5591,9171068,"","","",10000442,A6,"",012000110467,1.75,8,0,8,20150108224612
this is the sample code for reference
CsvFileDescription fd = new CsvFileDescription();
fd.FirstLineHasColumnNames = false;
fd.QuoteAllFields = false;
fd.EnforceCsvColumnAttribute = true;
fd.SeparatorChar = Globals.Separator[0];
CsvContext cc = new CsvContext();
cc.Write(data, txtFileName, fd);
All properties of data are plain strings
for example one of the columns is defined as
[CsvColumn(FieldIndex = 16, CanBeNull = true)]
public string TimeStamp { get; set; }