8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CsvHelper ver 13 からの仕様変更に注意

Last updated at Posted at 2020-02-07

※CSVHelper は開発スピードが速いので、最新版では下のサンプルが動かないかもしれません。

c# で CSV を便利に扱えるライブラリ CsvHelper ですが、ver 13 から仕様変更があって、うっかりバージョンを上げるとはまります。

まずは、github の issues を一読。

あと、change log も。

従来のコードはこんな感じでしたが、


using (var csv = new CsvReader(reader))
{

}

ver 13 からは次のように書きます。

using System.Globalization;

using (var csv = new CsvReader(reader, CultureInfo.CurrentCulture))
{

}
8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?