Skip to main content

CsvWriter<T>

Assembly: ServiceStack.Text.dll
View Source
Declaration
public class CsvWriter<T>

Properties

Headers

View Source
Declaration
public static List<string> Headers { get; set; }

Fields

DelimiterChar

View Source
Declaration
public const char DelimiterChar = ','

Methods

GetRows(IEnumerable<T>)

View Source
Declaration
public static List<List<string>> GetRows(IEnumerable<T> records)
Returns

System.Collections.Generic.List<System.Collections.Generic.List<System.String>>

Parameters
TypeName
System.Collections.Generic.IEnumerable<<T>>records

WriteObject(TextWriter, Object)

View Source
Declaration
public static void WriteObject(TextWriter writer, object records)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectrecords

WriteObjectRow(TextWriter, Object)

View Source
Declaration
public static void WriteObjectRow(TextWriter writer, object record)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectrecord

Write(TextWriter, IEnumerable<T>)

View Source
Declaration
public static void Write(TextWriter writer, IEnumerable<T> records)
Parameters
TypeName
System.IO.TextWriterwriter
System.Collections.Generic.IEnumerable<<T>>records

WriteRow(TextWriter, T)

View Source
Declaration
public static void WriteRow(TextWriter writer, T row)
Parameters
TypeName
System.IO.TextWriterwriter
<T>row

WriteRow(TextWriter, IEnumerable<String>)

View Source
Declaration
public static void WriteRow(TextWriter writer, IEnumerable<string> row)
Parameters
TypeName
System.IO.TextWriterwriter
System.Collections.Generic.IEnumerable<System.String>row

Write(TextWriter, IEnumerable<List<String>>)

View Source
Declaration
public static void Write(TextWriter writer, IEnumerable<List<string>> rows)
Parameters
TypeName
System.IO.TextWriterwriter
System.Collections.Generic.IEnumerable<System.Collections.Generic.List<System.String>>rows