【问题标题】:CsvHelper - .CurrentRecord / .Context.Record replacement in current version of CsvHelperCsvHelper - 当前版本的 CsvHelper 中的 .CurrentRecord / .Context.Record 替换
【发布时间】:2021-05-25 09:52:13
【问题描述】:

对于当前的CsvHelper版本,你以前能用的string()怎么弄:

  • csv.CurrentRecord() -> 旧版本。

  • csv.Context.Record() -> 更新的版本。

能够从 CurrentRecord 到 Context.Record 找到 info on the change,但这在当前版本中似乎不起作用。

【问题讨论】:

    标签: c# vb.net csvhelper


    【解决方案1】:

    我想我找到了答案:

    csv.Context.Parser.Record

    在 Repository 的问题中发现注释说明 .Context 中的大多数方法已分发到 .Parser 和 .Reader。

    【讨论】:

      猜你喜欢
      • 2022-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-06
      • 1970-01-01
      相关资源
      最近更新 更多