Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FileHelpers;
namespace MyProject
{
[DelimitedRecord(",")]
[IgnoreEmptyLines()]
[IgnoreFirst()]
public class MyProduct
{
//Name
public string Name{ get; set; }
//Description, this attribute will handle the double quotes issue
[FieldQuoted('"', QuoteMode.OptionalForBoth)]
public string Description{ get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.