Class TypeConverterOptionsCache
- Namespace
- CsvHelper.TypeConversion
- Assembly
- CsvHelper.dll
Caches TypeConverterOptions for a given type.
public class TypeConverterOptionsCache
- Inheritance
-
TypeConverterOptionsCache
- Inherited Members
Constructors
TypeConverterOptionsCache()
public TypeConverterOptionsCache()
Methods
AddOptions(TypeConverterOptions)
Adds the given TypeConverterOptions to all registered types.
public void AddOptions(TypeConverterOptions options)
Parameters
optionsTypeConverterOptions
AddOptions(Type, TypeConverterOptions)
Adds the TypeConverterOptions for the given Type.
public void AddOptions(Type type, TypeConverterOptions options)
Parameters
typeTypeThe type the options are for.
optionsTypeConverterOptionsThe options.
AddOptions<T>(TypeConverterOptions)
Adds the TypeConverterOptions for the given Type.
public void AddOptions<T>(TypeConverterOptions options)
Parameters
optionsTypeConverterOptionsThe options.
Type Parameters
TThe type the options are for.
GetOptions(Type)
Get the TypeConverterOptions for the given Type.
public TypeConverterOptions GetOptions(Type type)
Parameters
typeTypeThe type the options are for.
Returns
- TypeConverterOptions
The options for the given type.
GetOptions<T>()
Get the TypeConverterOptions for the given Type.
public TypeConverterOptions GetOptions<T>()
Returns
- TypeConverterOptions
The options for the given type.
Type Parameters
TThe type the options are for.
RemoveOptions(Type)
Removes the TypeConverterOptions for the given type.
public void RemoveOptions(Type type)
Parameters
typeTypeThe type to remove the options for.
RemoveOptions<T>()
Removes the TypeConverterOptions for the given type.
public void RemoveOptions<T>()
Type Parameters
TThe type to remove the options for.