Questions tagged [csvhelper]

The CsvHelper library is a .NET library that allows for easy reading and writing of comma-separated values (CSV) files.

The CsvHelper library is a .NET library that allows for easy reading and writing of comma-separated values (CSV) files. The library aims to be fast and easy to use. One of the most notable features is that it allows reading of writing of objects directly from/to a .csv file.

Links

861 questions
-2
votes
1 answer

CSVHelper Inline Convert issue

Trying to do a GTFS import to my custom type. The C# field is TimeSpan and I am trying to use inline the TimeSpanConverter and am missing something. I do not need fancy examples of JSON examples. Just need to know how to use the converter inline. I…
Steve
  • 1
  • 1
-2
votes
1 answer

CSV file creation is shorter than expected

I'm creating a CSV file, I'm using C# and CsvHelper to do so. My CSV file ends up being 205 lines long each time. I know for certain that it should be creating 240 entries, which is what I want. It seems to stop creating the CSV file at 205 lines.…
Jim
  • 761
  • 3
  • 10
  • 32
-3
votes
2 answers

CSV File Parsing

since this is the first discussion topic, forgive me in advance if I'm wrong. My question will be, I have an example of a CSV file in the form of '.txt' and I am using this file. Name Address Direction Status Duration Date I want to get values…
philante
  • 1
  • 2
-3
votes
1 answer

Nested collections in CSV Helper mapping

I have a collection Car including fields for date of production, car name, production place - this is a new model named ProductionPlace including City, Address and Id, and there is another collection in Cars which is Creator - including name,…
San
  • 55
  • 7
-3
votes
1 answer

storing parsed csv using CsvHelper as suitable datatype

How do I go about storing the parsed csv in a suitable datatype to perform calculations, view it etc. I find a method called records.ToList that seems promisingbut I can't get the syntax right. class XLOperations { public static void…
kPuck
  • 127
  • 3
  • 12
-3
votes
1 answer

CsvHelper library in C#, nulls as empty string

I am trying to use CsvHelper library to write records (or list) to CSV, but SomeModel class has some reference types properties that are sometimes null. I am wondering is there a way to print nulls as empty string instead of "null". I…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
1 2 3
57
58