2
// http://code.google.com/p/servicestack/wiki/TypeSerializer
3
// ServiceStack.Text: .NET C# POCO Type Text Serializer.
6
// Demis Bellot (demis.bellot@gmail.com)
8
// Copyright 2011 Liquidbit Ltd.
10
// Licensed under the same terms of ServiceStack: new BSD license.
13
using System.Collections.Generic;
16
namespace ServiceStack.Text
18
public static class CsvStreamExtensions
20
public static void WriteCsv<T>(this Stream outputStream, IEnumerable<T> records)
22
using (var textWriter = new StreamWriter(outputStream))
24
textWriter.WriteCsv(records);
28
public static void WriteCsv<T>(this TextWriter writer, IEnumerable<T> records)
30
CsvWriter<T>.Write(writer, records);
b'\\ No newline at end of file'