Column headers in CSV using fileHelpers library?

后端 未结 6 1776
醉话见心
醉话见心 2020-12-23 13:38

Is there a built-in field attribute in the FileHelper library which will add a header row in the final generated CSV?

I have Googled and didn\'t find much info on it

6条回答
  •  遥遥无期
    2020-12-23 14:25

    I know this is an old question, but here is an answer that works for v2.9.9

    FileHelperEngine engine = new FileHelperEngine();
    engine.HeaderText = engine.GetFileHeader();
    

提交回复
热议问题