public static void WriteFile <T>(IEnumerable <T> values, CsvFormat format, string path) { CsvHeader header = CsvHeader.FromType <T>(format); IEnumerable <CsvRecord> records = values.Select(e => CsvRecord.From(e, format)); WriteFile(header, records, path); }
public TypedCsvRecord(T value, CsvFormat format) { Record = CsvRecord.From(value, format); Value = value; }