public static Tabular <T> Format(IEnumerable <T> apiResources)
        {
            var csvOutput = new Tabular <T>();

            apiResources.ToList().ForEach(r => csvOutput.Add(r));
            return(csvOutput);
        }
Ejemplo n.º 2
0
        public void Write(Tabular <T> tabular)
        {
            uint rowIndex = 1;

            tabular.ToRows().ToList().ForEach(r =>
            {
                WriteRow(rowIndex, r);
                rowIndex++;
            });
        }
 public void Write(Tabular <T> output)
 {
     output.ToRows().ToList().ForEach(r => WriteRow(r));
     writer.Flush();
 }