Class CsvParser
Provides methods to parse a comma separated file.
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public static class CsvParser
Methods
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, bool)
Parses the specified stream.
Declaration
public static DataTable Parse(TextReader stream, bool headers)
Parameters
Type | Name | Description |
---|---|---|
TextReader | stream | The stream. |
bool | headers | if set to |
Returns
Type | Description |
---|---|
DataTable |
Parse(string)
Parses the specified data.
Declaration
public static DataTable Parse(string data)
Parameters
Type | Name | Description |
---|---|---|
string | data | The data. |
Returns
Type | Description |
---|---|
DataTable |
Parse(string, bool)
Parses the specified data.
Declaration
public static DataTable Parse(string data, bool headers)
Parameters
Type | Name | Description |
---|---|---|
string | data | The data. |
bool | headers | if set to |
Returns
Type | Description |
---|---|
DataTable |