C# Class STELLAR.APP.CsvParser

显示文件 Open project: cbinding/stellar

Public Methods

Method Description
Parse ( TextReader stream ) : DataTable
Parse ( TextReader stream, bool headers ) : DataTable
Parse ( TextReader stream, bool headers, char delimiter ) : DataTable
Parse ( TextReader stream, bool headers, char delimiter, long maxRows ) : DataTable
Parse ( string data ) : DataTable
Parse ( string data, bool headers ) : DataTable
ParseUsingFileHelpers ( String fileName, bool headers, String delimiter, int maxRows ) : DataTable

Private Methods

Method Description
GetNextColumnHeader ( DataTable table ) : string

Method Details

Parse() public static method

public static Parse ( TextReader stream ) : DataTable
stream TextReader
return System.Data.DataTable

Parse() public static method

public static Parse ( TextReader stream, bool headers ) : DataTable
stream TextReader
headers bool
return System.Data.DataTable

Parse() public static method

public static Parse ( TextReader stream, bool headers, char delimiter ) : DataTable
stream TextReader
headers bool
delimiter char
return System.Data.DataTable

Parse() public static method

public static Parse ( TextReader stream, bool headers, char delimiter, long maxRows ) : DataTable
stream TextReader
headers bool
delimiter char
maxRows long
return System.Data.DataTable

Parse() public static method

public static Parse ( string data ) : DataTable
data string
return System.Data.DataTable

Parse() public static method

public static Parse ( string data, bool headers ) : DataTable
data string
headers bool
return System.Data.DataTable

ParseUsingFileHelpers() public static method

public static ParseUsingFileHelpers ( String fileName, bool headers, String delimiter, int maxRows ) : DataTable
fileName String
headers bool
delimiter String
maxRows int
return System.Data.DataTable