8b4d0c00 b4f0 f233 b464 dc220635c16b - akesseler/Plexdata.CsvParser GitHub Wiki
This class describes how CSV exports as well as imports have to be handled.
System.Object
Plexdata.CsvParser.Processors.CsvSettings
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public class CsvSettings
The CsvSettings type exposes the following members.
Name | Description | |
---|---|---|
![]() |
CsvSettings | Default class construction. |
Name | Description | |
---|---|---|
![]() |
Culture | Gets or sets the culture to be used. Default value is current UI culture. |
![]() |
Encoding | Gets or sets the the expected file encoding. Default value is UTF-8. |
![]() |
Exactly | Enables or disables the exactly mode. Default value is false. |
![]() |
Heading | Enables or disables the header usage. Default value is true. |
![]() |
Mappings | Gets or sets the mapping to be used for value transformation. Default value is standard mapping. |
![]() |
Separator | Gets or sets the character that separates each CSV column. Default value is a comma. |
![]() |
Textual | Enables or disables the textual mode. Default value is false. |
Name | Description | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | This method returns a string containing current instance information. (Overrides Object.ToString().) |
Name | Description | |
---|---|---|
![]() |
culture | The culture information to be used to read or write a CSV file. |
![]() |
encoding | The encoding to be used to read or write a CSV file. |
![]() |
exactly | The flag to enable or disable the exactly treatment. |
![]() |
heading | The flag to enable or disable the usage of a header. |
![]() |
mapping | The mapping to be used for value transformation. |
![]() |
separator | The delimiter to be used to separate each CSV column. |
![]() |
textual | The flag to enable or disable the textual treatment. |
The settings class provides information for both, importing as well as exporting CSV data. But not all of the properties are used in a particular situation. For example, the 'Textual' property is only used while a data export. In contrast to that, the 'Exactly' property is only relevant for a data import. Against this, the 'Culture' property is used for both tasks.