Interface ITypeConverterFactory
- Namespace
- CsvHelper.TypeConversion
- Assembly
- CsvHelper.dll
Produces ITypeConverter for the specified Type
public interface ITypeConverterFactory
Methods
CanCreate(Type)
Determines if the factory can create a type converter for the given type.
bool CanCreate(Type type)
Parameters
Returns
- bool
trueif the factory can create the type, otherwisefalse.
Create(Type, TypeConverterCache, out ITypeConverter)
Creates a type converter for the given type and assigns it to the given out typeConverter parameter.
bool Create(Type type, TypeConverterCache cache, out ITypeConverter typeConverter)
Parameters
typeTypeThe type to create the converter for.
cacheTypeConverterCacheThe type converter cache.
typeConverterITypeConverterThe parameter to set the converter to.
Returns
- bool
trueif the converter should be added to the cache, otherwisefalse.