Class TypeConverterOptions
- Namespace
- CsvHelper.TypeConversion
- Assembly
- CsvHelper.dll
Options used when doing type conversion.
public class TypeConverterOptions
- Inheritance
-
TypeConverterOptions
- Inherited Members
Constructors
TypeConverterOptions()
public TypeConverterOptions()
Properties
BooleanFalseValues
Gets the list of values that can be used to represent a boolean of false.
public List<string> BooleanFalseValues { get; }
Property Value
BooleanTrueValues
Gets the list of values that can be used to represent a boolean of true.
public List<string> BooleanTrueValues { get; }
Property Value
CultureInfo
Gets or sets the culture info.
public CultureInfo? CultureInfo { get; set; }
Property Value
DateTimeStyle
Gets or sets the date time style.
public DateTimeStyles? DateTimeStyle { get; set; }
Property Value
EnumIgnoreCase
Ingore case when parsing enums. Default is false.
public bool? EnumIgnoreCase { get; set; }
Property Value
- bool?
Formats
Gets or sets the string format.
public string[]? Formats { get; set; }
Property Value
- string[]
NullValues
Gets the list of values that can be used to represent a null value.
public List<string> NullValues { get; }
Property Value
NumberStyles
Gets or sets the number style.
public NumberStyles? NumberStyles { get; set; }
Property Value
TimeSpanStyle
Gets or sets the time span style.
public TimeSpanStyles? TimeSpanStyle { get; set; }
Property Value
UriKind
Gets or sets the UriKind.
public UriKind? UriKind { get; set; }
Property Value
- UriKind?
Methods
Merge(params TypeConverterOptions[])
Merges TypeConverterOptions by applying the values of sources in order on to each other. The first object is the source object.
public static TypeConverterOptions Merge(params TypeConverterOptions[] sources)
Parameters
sources
TypeConverterOptions[]The sources that will be applied.
Returns
- TypeConverterOptions
The updated source object.