Tip
The optimal method arguments can be determined automatically with CsvAnalyzer - or
use ParseAnalyzed(String, Header, Int32).
public static CsvRecord[] Parse(
string csv,
char delimiter = ',',
bool isHeaderPresent = true,
CsvOpts options = CsvOpts.Default
)
Public Shared Function Parse (
csv As String,
Optional delimiter As Char = ","C,
Optional isHeaderPresent As Boolean = true,
Optional options As CsvOpts = CsvOpts.Default
) As CsvRecord()
public:
static array<CsvRecord^>^ Parse(
String^ csv,
wchar_t delimiter = L',',
bool isHeaderPresent = true,
CsvOpts options = CsvOpts::Default
)
static member Parse :
csv : string *
?delimiter : char *
?isHeaderPresent : bool *
?options : CsvOpts
(* Defaults:
let _delimiter = defaultArg delimiter ','
let _isHeaderPresent = defaultArg isHeaderPresent true
let _options = defaultArg options CsvOpts.Default
*)
-> CsvRecord[]
ArgumentNullException | csv is null. |
CsvFormatException | Invalid CSV. The interpretation depends on options. |