Table of Contents

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

type Type

The Type to be checked

Returns

bool

true if the factory can create the type, otherwise false.

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 Type

The type to create the converter for.

cache TypeConverterCache

The type converter cache.

typeConverter ITypeConverter

The parameter to set the converter to.

Returns

bool

true if the converter should be added to the cache, otherwise false.