50a5a4f4 83af f561 d065 898e6e31a7d8 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvMappings Class

This class provides the possibility to map values within a CSV file into standard values.

Inheritance Hierarchy

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

Syntax

C#

public class CsvMappings

The CsvMappings type exposes the following members.

Constructors

 

Name Description
Private methodStatic member CsvMappings The static constructor.
Public method CsvMappings Default class construction.
  Back to Top

Properties

 

Name Description
Public property FalseValue Gets or sets the descriptor representing a 'False' value which should occur in an exported CSV file instead of the standard Boolean 'False' value.
Public property FalseValues Gets or sets the list of descriptors containing all possible values representing variations of 'False' which may occur in CSV files.
Public property NullValue Gets or sets the descriptor representing a 'Null' value which should occur in an exported CSV file instead of an empty string.
Public property NullValues Gets or sets the list of descriptors containing all possible values representing variations of 'Null' which may occur in CSV files.
Public property TrueValue Gets or sets the descriptor representing a 'True' value which should occur in an exported CSV file instead of the standard Boolean 'True' value.
Public property TrueValues Gets or sets the list of descriptors containing all possible values representing variations of 'True' which may occur in CSV files.
  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
Public fieldStatic member DefaultFalseValue Gets the default 'False' descriptor which is 'false' at the moment.
Public fieldStatic member DefaultFalseValues Gets the default list of 'False' descriptors which contain 'false', '0', 'n' and 'no' at the moment.
Public fieldStatic member DefaultMappings Gets the default mapping instance.
Public fieldStatic member DefaultNullValue Gets the default 'Null' descriptor which is 'empty' at the moment.
Public fieldStatic member DefaultNullValues Gets the default list of 'Null' descriptors which just contains '' at the moment.
Public fieldStatic member DefaultTrueValue Gets the default 'True' descriptor which is 'true' at the moment.
Public fieldStatic member DefaultTrueValues Gets the default list of 'True' descriptors which contain 'true', '1', 'y' and 'yes' at the moment.
  Back to Top

Remarks

Users may have the need to map values that could occur in a CSV file into real values. A good example for such a mapping is da Boolean value. For example, a Boolean value in a CSV file might be "Yes" or even "No". However, a Boolean only knows "True" or "False". For such a case, it would be reasonable to have a tool that can map for example the "Yes" value into "True". This mapping functionality is task of this class.

See Also

Reference

Plexdata.CsvParser.Processors Namespace

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