CsvFile Class
| Namespace | Skybrud.Csv |
|---|---|
| Assembly | Skybrud.Csv.dll |
| Visibility | Public |
| Inheritance | Object |
Class representing a CSV file parsed either from a file or a string.
public class CsvFile { }
Fields
| Type | Name | Value | Summary |
|---|---|---|---|
| CsvSeparator | DefaultSeparator | 1 |
Gets the default CSV separator. |
Properties
| Type | Name | Summary |
|---|---|---|
| Encoding | DefaultEncoding |
Gets tghe default encoding. |
| CsvSeparator | Separator |
Gets or sets the seperator used in the CSV file. |
| Encoding | Encoding |
Gets or sets the encoding used in the CSV file. |
| String | Path |
Gets the path from where the CSV file was loaded. |
| bool | HasPath |
Gets whether this instance has a reference to the path the CSV file was loaded from. |
| CsvColumnList | Columns |
Gets a list of the columns of the file. |
| CsvRowList | Rows |
Gets a list of the rows of the file. |
Methods
|
Adds a new column to the file. |
|
Adds a new row to the file. |
|
Load(string)
(static)
Loads the CSV file at the specified |
|
Load(string, CsvSeparator)
(static)
Loads the CSV file at the specified |
|
Load(string, Encoding)
(static)
Loads the CSV file at the specified |
|
Load(string, CsvSeparator, Encoding)
(static)
Loads the CSV file at the specified |
|
Load(Stream)
(static)
Loads a new CSV file from the specified |
|
Load(Stream, CsvSeparator)
(static)
Loads a new CSV file from the specified |
|
Load(Stream, Encoding)
(static)
Loads a new CSV file from the specified |
|
Load(Stream, CsvSeparator, Encoding)
(static)
Loads a new CSV file from the specified |
|
Parse(string)
(static)
Parses the specified |
|
Parse(string, CsvSeparator)
(static)
Parses the specified |
|
Saves the CSV file to it's original path. |
|
Saves the CSV file to the specified |
|
Saves the CSV file at the specified |
|
Saves the CSV file at the specified |
|
Saves the CSV file at the specified |
|
ToString()
(virtual)
Returns a string representation of the CSV file. |
|
Returns a string representation of the CSV file, using the specified |