Table of Contents

Class AbstractGenericConditionalConverter

Namespace
Steeltoe.Common.Converter
Assembly
Steeltoe.Common.dll
public abstract class AbstractGenericConditionalConverter : AbstractGenericConverter, IConditionalGenericConverter, IConditionalConverter, IGenericConverter
Inheritance
AbstractGenericConditionalConverter
Implements
Derived
Inherited Members

Constructors

AbstractGenericConditionalConverter(ISet<(Type Source, Type Target)>)

protected AbstractGenericConditionalConverter(ISet<(Type Source, Type Target)> convertableTypes)

Parameters

convertableTypes ISet<(Type Source, Type Target)>

Methods

Matches(Type, Type)

Can the conversion from source type to target type be performed by this converter

public abstract bool Matches(Type sourceType, Type targetType)

Parameters

sourceType Type

the type of the source object to convert from

targetType Type

the type of the target object to conver to

Returns

bool

true if the conversion can be performed