Skip to content

M_CodeJam_TableData_CsvFormat_Parse

Andrew Koryavchenko edited this page Jun 17, 2018 · 2 revisions

CsvFormat.Parse Method

Parses CSV data.

Namespace: CodeJam.TableData
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

public static IEnumerable<DataLine> Parse(
	TextReader reader,
	bool allowEscaping = true,
	char columnSeparator = ','
)

VB

Public Shared Function Parse ( 
	reader As TextReader,
	Optional allowEscaping As Boolean = true,
	Optional columnSeparator As Char = ","C
) As IEnumerable(Of DataLine)

F#

static member Parse : 
        reader : TextReader * 
        ?allowEscaping : bool * 
        ?columnSeparator : char 
(* Defaults:
        let _allowEscaping = defaultArg allowEscaping true
        let _columnSeparator = defaultArg columnSeparator ','
*)
-> IEnumerable<DataLine> 

Parameters

 

reader
Type: System.IO.TextReader
Text to parse
allowEscaping (Optional)
Type: System.Boolean
If true, allows values escaping.
columnSeparator (Optional)
Type: System.Char
Char to use as column separator

Return Value

Type: IEnumerable(DataLine)
Enumeration of DataLine contained parsed data.

See Also

Reference

CsvFormat Class
CodeJam.TableData Namespace

Clone this wiki locally