50a5a4f4 83af f561 d065 898e6e31a7d8 - akesseler/Plexdata.CsvParser GitHub Wiki
This class provides the possibility to map values within a CSV file into standard values.
System.Object
Plexdata.CsvParser.Processors.CsvMappings
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public class CsvMappings
The CsvMappings type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
CsvMappings | The static constructor. |
![]() |
CsvMappings | Default class construction. |
Name | Description | |
---|---|---|
![]() |
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. |
![]() |
FalseValues | Gets or sets the list of descriptors containing all possible values representing variations of 'False' which may occur in CSV files. |
![]() |
NullValue | Gets or sets the descriptor representing a 'Null' value which should occur in an exported CSV file instead of an empty string. |
![]() |
NullValues | Gets or sets the list of descriptors containing all possible values representing variations of 'Null' which may occur in CSV files. |
![]() |
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. |
![]() |
TrueValues | Gets or sets the list of descriptors containing all possible values representing variations of 'True' which may occur in CSV files. |
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 | |
---|---|---|
![]() ![]() |
DefaultFalseValue | Gets the default 'False' descriptor which is 'false' at the moment. |
![]() ![]() |
DefaultFalseValues | Gets the default list of 'False' descriptors which contain 'false', '0', 'n' and 'no' at the moment. |
![]() ![]() |
DefaultMappings | Gets the default mapping instance. |
![]() ![]() |
DefaultNullValue | Gets the default 'Null' descriptor which is 'empty' at the moment. |
![]() ![]() |
DefaultNullValues | Gets the default list of 'Null' descriptors which just contains '' at the moment. |
![]() ![]() |
DefaultTrueValue | Gets the default 'True' descriptor which is 'true' at the moment. |
![]() ![]() |
DefaultTrueValues | Gets the default list of 'True' descriptors which contain 'true', '1', 'y' and 'yes' at the moment. |
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.