Click or drag to resize

ConverterKind Enumeration

Indicates the Conversion used in the FieldConverterAttribute.

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public enum ConverterKind
Members
  Member nameValueDescription
None0Null Converter.
Date1

Convert from or to Date values.

Params: arg1 is the string with the date format.

Boolean2

Convert from or to Boolean values.

Params: arg1 is the TRUE string

Params: arg2 is the FALSE string

Byte3

Convert from or to Byte values.

Params: arg1 is the decimal separator, by default '.'

Int164

Convert from or to Int16 or short values.

Params: arg1 is the decimal separator, by default '.'

Int325

Convert from or to Int32 or int values.

Params: arg1 is the decimal separator, by default '.'

Int646

Convert from or to Int64 or long values.

Params: arg1 is the decimal separator, by default '.'

Decimal7

Convert from or to Decimal values.

Params: arg1 is the decimal separator, by default '.'

Double8

Convert from or to Double values.

Params: arg1 is the decimal separator, by default '.'

PercentDouble9

Convert from or to Double values. Understands Percent '%' symbol and if present returns number /100 only while reading

Params: arg1 is the decimal separator, by default '.'

Single10

Convert from or to Single values.

Params: arg1 is the decimal separator, by default '.'

SByte11

Convert from or to Byte values.

Params: arg1 is the decimal separator, by default '.'

UInt1612

Convert from or to UInt16 or unsigned short values.

Params: arg1 is the decimal separator, by default '.'

UInt3213

Convert from or to UInt32 or unsigned int values.

Params: arg1 is the decimal separator, by default '.'

UInt6414

Convert from or to UInt64 or unsigned long values.

Params: arg1 is the decimal separator, by default '.'

DateMultiFormat15

Convert from or to Date values using more than one valid format.

Params: arg1 is a string with the main date format. This format is the unique used for write.

Params: arg2 is a string with another valid read format.

Params: arg3 is a string with another valid read format.

Char16

Convert from or to Char values.

Params: arg1 is a string with "" for default behavior, "x" for make the char ToLower or "X" for make it ToUpper.

Guid17

Convert from/to Guid values.

Params: arg1 is a string with one of the Guid.ToString() formats: "N", "D", "B", or "P"

"N" -> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

"D" -> xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

"B" -> {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

"P" -> (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

See Also