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
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | records |
WriteObject(TextWriter, Object)
View Source
Declaration
public static void WriteObject(TextWriter writer, object records)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | records |
WriteObjectRow(TextWriter, Object)
View Source
Declaration
public static void WriteObjectRow(TextWriter writer, object record)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | record |
Write(TextWriter, IEnumerable<T>)
View Source
Declaration
public static void Write(TextWriter writer, IEnumerable<T> records)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Collections.Generic.IEnumerable<<T>> | records |
WriteRow(TextWriter, T)
View Source
Declaration
public static void WriteRow(TextWriter writer, T row)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
<T> | row |
WriteRow(TextWriter, IEnumerable<String>)
View Source
Declaration
public static void WriteRow(TextWriter writer, IEnumerable<string> row)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
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
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Collections.Generic.IEnumerable<System.Collections.Generic.List<System.String>> | rows |