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
true
if 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
type
TypeThe type to create the converter for.
cache
TypeConverterCacheThe type converter cache.
typeConverter
ITypeConverterThe parameter to set the converter to.
Returns
- bool
true
if the converter should be added to the cache, otherwisefalse
.