Class ParameterMapTypeConverterOption
- Namespace
- CsvHelper.Configuration
- Assembly
- CsvHelper.dll
Sets type converter options on a parameter map.
public class ParameterMapTypeConverterOption
- Inheritance
-
ParameterMapTypeConverterOption
- Inherited Members
Constructors
ParameterMapTypeConverterOption(ParameterMap)
Creates a new instance using the given ParameterMap.
public ParameterMapTypeConverterOption(ParameterMap parameterMap)
Parameters
parameterMap
ParameterMapThe member map the options are being applied to.
Methods
BooleanValues(bool, bool, params string[])
The string values used to represent a boolean when converting.
public virtual ParameterMap BooleanValues(bool isTrue, bool clearValues = true, params string[] booleanValues)
Parameters
isTrue
boolA value indicating whether true values or false values are being set.
clearValues
boolA value indication if the current values should be cleared before adding the new ones.
booleanValues
string[]The string boolean values.
Returns
CultureInfo(CultureInfo)
The CultureInfo(CultureInfo) used when type converting. This will override the global CultureInfo setting.
public virtual ParameterMap CultureInfo(CultureInfo cultureInfo)
Parameters
cultureInfo
CultureInfoThe culture info.
Returns
DateTimeStyles(DateTimeStyles)
The DateTimeStyles(DateTimeStyles) to use when type converting. This is used when doing any DateTime conversions.
public virtual ParameterMap DateTimeStyles(DateTimeStyles dateTimeStyle)
Parameters
dateTimeStyle
DateTimeStylesThe date time style.
Returns
Format(params string[])
The string format to be used when type converting.
public virtual ParameterMap Format(params string[] formats)
Parameters
formats
string[]The format.
Returns
NullValues(bool, params string[])
The string values used to represent null when converting.
public virtual ParameterMap NullValues(bool clearValues, params string[] nullValues)
Parameters
clearValues
boolA value indication if the current values should be cleared before adding the new ones.
nullValues
string[]The values that represent null.
Returns
NullValues(params string[])
The string values used to represent null when converting.
public virtual ParameterMap NullValues(params string[] nullValues)
Parameters
nullValues
string[]The values that represent null.
Returns
NumberStyles(NumberStyles)
The NumberStyles(NumberStyles) to use when type converting. This is used when doing any number conversions.
public virtual ParameterMap NumberStyles(NumberStyles numberStyle)
Parameters
numberStyle
NumberStyles
Returns
TimespanStyles(TimeSpanStyles)
The TimeSpanStyles to use when type converting. This is used when doing TimeSpan converting.
public virtual ParameterMap TimespanStyles(TimeSpanStyles timeSpanStyles)
Parameters
timeSpanStyles
TimeSpanStylesThe time span styles.
Returns
UriKind(UriKind)
The UriKind(UriKind) to use when converting. This is used when doing System.Uri conversions.
public virtual ParameterMap UriKind(UriKind uriKind)
Parameters
uriKind
UriKindKind of the URI.