The header record is on the csv context. It needs to be read beforehand before accessing.
csv.Read();
csv.ReadHeader();
string[] headerRow = csv.Context.HeaderRecord;
The header record is on the csv context. It needs to be read beforehand before accessing.
csv.Read();
csv.ReadHeader();
string[] headerRow = csv.Context.HeaderRecord;