Skip to main content

CsvReader

Assembly: ServiceStack.Text.dll
View Source
Declaration
public class CsvReader

Methods

ParseLines(String)

View Source
Declaration
public static List<string> ParseLines(string csv)
Returns

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

Parameters
TypeName
System.Stringcsv

ParseFields(String)

View Source
Declaration
public static List<string> ParseFields(string line)
Returns

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

Parameters
TypeName
System.Stringline

ParseFields(String, Func<String, String>)

View Source
Declaration
public static List<string> ParseFields(string line, Func<string, string> parseFn)
Returns

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

Parameters
TypeName
System.Stringline
System.Func<System.String,System.String>parseFn

EatValue(String, ref Int32)

View Source
Declaration
public static string EatValue(string value, ref int i)
Returns

System.String

Parameters
TypeName
System.Stringvalue
System.Int32i