相关疑难解决方法(0)

使用标头解析C#中的CSV文件

是否有默认/官方/推荐的方法来解析C#中的CSV文件?我不想滚动自己的解析器.

此外,我已经看到人们使用ODBC/OLE DB通过Text驱动程序读取CSV的实例,很多人由于其"缺点"而不鼓励这种情况.这些缺点是什么?

Ideally, I'm looking for a way through which I can read the CSV by column name, using the first record as the header/field names. Some of the answers given are correct but work to basically deserialize the file into classes.

c# csv io file-io header

248
推荐指数
10
解决办法
30万
查看次数

标签 统计

c# ×1

csv ×1

file-io ×1

header ×1

io ×1