Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近使用 CsvHelper 简化了许多报告导出取得了很多成功,但我目前对如何输出“小计”行感到困惑。
例如,如果我要导出的强类型对象集合是员工每天工作的小时数,我想在单独的行中输出该员工所有小时数的小计。
CsvHelper 甚至可能吗?如果是,我怀疑它使用的是自定义 TypeConverter,但如果是这种情况,我不确定如何创建一个不“基于”我的强类型对象的新行。