Search code examples
c#vb.netcsvhelper

CsvHelper - .CurrentRecord / .Context.Record replacement in current version of CsvHelper


For the current CsvHelper version, how do you get the string() you used to be able to get with:

  • csv.CurrentRecord() -> older versions.

  • csv.Context.Record() -> more recent versions.

Able to find info on the change from CurrentRecord to Context.Record, but that does not seem to work in current version.


Solution

  • Think I found the answer:

    csv.Context.Parser.Record

    Found comment in Repository's issues stating most methods from .Context had been distributed to .Parser and .Reader.