Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
You can do it if the delimiter is different than the escape and quote. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Example: void Main()
{
var s = new StringBuilder();
s.Append("Id\"Name\r\n");
s.Append("1\"one\r\n");
var config = new CsvConfiguration(CultureInfo.InvariantCulture)
{
Delimiter = "\"",
Quote = '\'',
Escape = '\''
};
using (var reader = new StringReader(s.ToString()))
using (var csv = new CsvReader(reader, config))
{
csv.GetRecords<Foo>().ToList().Dump();
}
}
private class Foo
{
public int Id { get; set; }
public string Name { get; set; }
} |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
While working with quote(") as delimeter throwing error (It Is not supported).but it working fine for ",","|"
Beta Was this translation helpful? Give feedback.
All reactions