Beispiel #1
0
 public async Task Schema()
 {
     var dr  = TestData.GetTypedData();
     var sw  = new StringWriter();
     var csv = new CsvDataWriter(sw);
     await csv.WriteAsync(dr);
 }
Beispiel #2
0
 public async Task SylvanDataAsync()
 {
     var tw  = TextWriter.Null;
     var dr  = TestData.GetTestDataReader();
     var csv = new CsvDataWriter(tw);
     await csv.WriteAsync(dr);
 }
Beispiel #3
0
        public void SylvanDataSync()
        {
            var tw  = TextWriter.Null;
            var dr  = TestData.GetTestDataReader();
            var csv = new CsvDataWriter(tw);

            csv.Write(dr);
        }
Beispiel #4
0
        public void WriteTypes()
        {
            var data = TestData.GetTypedData();
            var tw   = new StringWriter();

            using var csv = new CsvDataWriter(tw);
            csv.Write(data);
            var str = tw.ToString();
        }
Beispiel #5
0
        public async Task Binary()
        {
            var dr = TestData.GetBinaryData();
            var sw = new StringWriter();

            using var csv = new CsvDataWriter(sw);
            await csv.WriteAsync(dr);

            var str = sw.ToString();
        }