We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
たとえば以下のカラム数3つのCSVがある時に
col1, col2, col3 foo1, bar1, baz1 foo2, bar2, baz2
Column属性が3つ未満のCsvObjectで読み込むとデシリアライズ結果の配列数が2倍になり、偶数番目は空のModelが入っています。
[CsvObject] public partial class Model { [Column(0)] public string col1; [Column(1)] public string col2; } public class CsvLoader { public Model[] Load(string path) { using var fs = File.OpenRead(path); var result = CsvSerializer.Deserialize<Model>(fs); // resultの数が4つになり、偶数番目は空のModelが入っている return result; } }
CSVのカラム数とColumn属性の数を合わせるのは必須でしょうか?
The text was updated successfully, but these errors were encountered:
この問題は #11 で修正されました。
Sorry, something went wrong.
AnnulusGames
No branches or pull requests
たとえば以下のカラム数3つのCSVがある時に
Column属性が3つ未満のCsvObjectで読み込むとデシリアライズ結果の配列数が2倍になり、偶数番目は空のModelが入っています。
CSVのカラム数とColumn属性の数を合わせるのは必須でしょうか?
The text was updated successfully, but these errors were encountered: