Caches
ITypeConverter
s for a given type.
- Namespace
- CsvHelper
.TypeConversion - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["TypeConverterCache"]
class Type type-node
Syntax
public class TypeConverterCache
Constructors
Name | Summary |
---|---|
TypeConverterCache |
Initializes the TypeConverterCache class.
|
Methods
Name | Return Value | Summary |
---|---|---|
AddConverter |
void |
Adds the given
ITypeConverter to all registered types.
|
AddConverter |
void |
Adds the
ITypeConverter for the given System.Type .
|
AddConverter |
void |
Adds the
ITypeConverter for the given System.Type .
|
AddConverter |
void |
Adds the
TypeConverter<T> for the given System.Type .
|
AddConverterFactory |
void |
Adds the
ITypeConverterFactory .
Factories are queried in order of being added and first factory that handles the type is used for creating the ITypeConverter .
|
Contains |
bool |
Determines if there is a converter registered for the given type.
|
GetConverter |
ITypeConverter |
Gets the converter for the given member. If an attribute is
found on the member, that will be used, otherwise the cache
will be used.
|
GetConverter |
ITypeConverter |
Gets the converter for the given
System.Type .
|
GetConverter |
ITypeConverter |
Gets the converter for the given
System.Type .
|
RemoveConverter |
void |
Removes the
ITypeConverter for the given System.Type .
|
RemoveConverter |
void |
Removes the
ITypeConverter for the given System.Type .
|
Remove |
void |
Removes the ITypeConverterFactory.
|