public static CsvAnalyzerResult AnalyzeString(
string csv,
Header header = Header.ProbablyPresent,
int analyzedLines = 5
)
Public Shared Function AnalyzeString (
csv As String,
Optional header As Header = Header.ProbablyPresent,
Optional analyzedLines As Integer = 5
) As CsvAnalyzerResult
public:
static CsvAnalyzerResult^ AnalyzeString(
String^ csv,
Header header = Header::ProbablyPresent,
int analyzedLines = 5
)
static member AnalyzeString :
csv : string *
?header : Header *
?analyzedLines : int
(* Defaults:
let _header = defaultArg header Header.ProbablyPresent
let _analyzedLines = defaultArg analyzedLines 5
*)
-> CsvAnalyzerResult
CsvAnalyzer performs a statistical analysis on the String. The result of the analysis is therefore always only an estimate, the accuracy of which increases with the number of lines analyzed.
The field delimiters COMMA (',', %x2C), SEMICOLON (';', %x3B), HASH ('#', %x23), TAB ('\t', %x09), and SPACE (' ', %x20) are recognized automatically.
ArgumentNullException | csv is null. |
ArgumentOutOfRangeException | header is not a defined value of the Header enum. - or - header is a combination of Header values. |