예제 #1
0
        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);
        }
예제 #2
0
 public TypedCsvRecord(T value, CsvFormat format)
 {
     Record = CsvRecord.From(value, format);
     Value  = value;
 }