8b4d0c00 b4f0 f233 b464 dc220635c16b - akesseler/Plexdata.CsvParser GitHub Wiki

CsvSettings Class

This class describes how CSV exports as well as imports have to be handled.

Inheritance Hierarchy

System.Object
  Plexdata.CsvParser.Processors.CsvSettings
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public class CsvSettings

The CsvSettings type exposes the following members.

Constructors

 

Name Description
Public method CsvSettings Default class construction.
  Back to Top

Properties

 

Name Description
Public property Culture Gets or sets the culture to be used. Default value is current UI culture.
Public property Encoding Gets or sets the the expected file encoding. Default value is UTF-8.
Public property Exactly Enables or disables the exactly mode. Default value is false.
Public property Heading Enables or disables the header usage. Default value is true.
Public property Mappings Gets or sets the mapping to be used for value transformation. Default value is standard mapping.
Public property Separator Gets or sets the character that separates each CSV column. Default value is a comma.
Public property Textual Enables or disables the textual mode. Default value is false.
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString This method returns a string containing current instance information. (Overrides Object.ToString().)
  Back to Top

Fields

 

Name Description
Private field culture The culture information to be used to read or write a CSV file.
Private field encoding The encoding to be used to read or write a CSV file.
Private field exactly The flag to enable or disable the exactly treatment.
Private field heading The flag to enable or disable the usage of a header.
Private field mapping The mapping to be used for value transformation.
Private field separator The delimiter to be used to separate each CSV column.
Private field textual The flag to enable or disable the textual treatment.
  Back to Top

Remarks

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.

See Also

Reference

Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️