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
options
TypeConverterOptions
AddOptions(Type, TypeConverterOptions)
Adds the TypeConverterOptions for the given Type.
public void AddOptions(Type type, TypeConverterOptions options)
Parameters
type
TypeThe type the options are for.
options
TypeConverterOptionsThe options.
AddOptions<T>(TypeConverterOptions)
Adds the TypeConverterOptions for the given Type.
public void AddOptions<T>(TypeConverterOptions options)
Parameters
options
TypeConverterOptionsThe options.
Type Parameters
T
The type the options are for.
GetOptions(Type)
Get the TypeConverterOptions for the given Type.
public TypeConverterOptions GetOptions(Type type)
Parameters
type
TypeThe 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
T
The type the options are for.
RemoveOptions(Type)
Removes the TypeConverterOptions for the given type.
public void RemoveOptions(Type type)
Parameters
type
TypeThe type to remove the options for.
RemoveOptions<T>()
Removes the TypeConverterOptions for the given type.
public void RemoveOptions<T>()
Type Parameters
T
The type to remove the options for.