Need help with reading csv string object with csvhelper #1636
Unanswered
prashantkhandagale
asked this question in
Q&A
Replies: 1 comment
-
void Main()
{
String carmodels = "make,model,year\r\nFord,Escort,1998\r\nHonda,Civiv,1994";
using (var sReader = new StringReader(carmodels))
using (var csvReader = new CsvHelper.CsvReader(sReader, CultureInfo.InvariantCulture))
{
var records = csvReader.GetRecords<dynamic>().ToList();
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have csv string in string object. Can we read it using CsvHelper?
Example : String carmodels = "make,model,year\n\rFord,Escort,1998\n\rHonda,Civiv,1994"
I need to read above string using CsvHelper..Is it possible ?
Beta Was this translation helpful? Give feedback.
All reactions