Show / Hide Table of Contents

Class CsvParser

Provides methods to parse a comma separated file.

Inheritance
System.Object
CsvParser
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public static class CsvParser : object

Methods

Parse(String)

Parses the specified data.

Declaration
public static DataTable Parse(string data)
Parameters
Type Name Description
System.String data

The data.

Returns
Type Description
DataTable

Parse(String, Boolean)

Parses the specified data.

Declaration
public static DataTable Parse(string data, bool headers)
Parameters
Type Name Description
System.String data

The data.

System.Boolean headers

if set to true [headers].

Returns
Type Description
DataTable

Parse(TextReader)

Parses the specified stream.

Declaration
public static DataTable Parse(TextReader stream)
Parameters
Type Name Description
TextReader stream

The stream.

Returns
Type Description
DataTable

Parse(TextReader, Boolean)

Parses the specified stream.

Declaration
public static DataTable Parse(TextReader stream, bool headers)
Parameters
Type Name Description
TextReader stream

The stream.

System.Boolean headers

if set to true [headers].

Returns
Type Description
DataTable
Back to top Copyright © 2009-2018 Colectica