CsvHelper - 当前版本的 CsvHelper 中的 .CurrentRecord / .Context.Record 替换
CsvHelper - .CurrentRecord / .Context.Record replacement in current version of CsvHelper
对于当前的 CsvHelper 版本,您如何获得您以前能够获得的 string():
csv.CurrentRecord() -> 旧版本。
csv.Context.Record() -> 更新的版本。
能够找到从 CurrentRecord 到 Context.Record 的 info on the change,但这在当前版本中似乎不起作用。
我想我找到了答案:
csv.Context.Parser.Record
在 Repository 的问题中找到评论,指出 .Context 中的大多数方法已分发到 .Parser 和 .Reader。
对于当前的 CsvHelper 版本,您如何获得您以前能够获得的 string():
csv.CurrentRecord() -> 旧版本。
csv.Context.Record() -> 更新的版本。
能够找到从 CurrentRecord 到 Context.Record 的 info on the change,但这在当前版本中似乎不起作用。
我想我找到了答案:
csv.Context.Parser.Record
在 Repository 的问题中找到评论,指出 .Context 中的大多数方法已分发到 .Parser 和 .Reader。