Example #1
0
 public Task WriteLineAsync(T lineElement)
 {
     return(FileWriter.WriteLineAsync(
                CsvFunctions.ToLine(
                    lineElement,
                    config
                    )
                ));
 }
Example #2
0
        public async Task WriteLinesAsync(IEnumerable <T> elements)
        {
            var enumerator = elements.GetEnumerator();

            while (enumerator.MoveNext())
            {
                await FileWriter.WriteLineAsync(
                    CsvFunctions.ToLine(
                        enumerator.Current,
                        config
                        )
                    );
            }
        }