Table of Contents

Interface IConditionalConverter

Namespace
Steeltoe.Common.Converter
Assembly
Steeltoe.Common.Abstractions.dll

Allows a converter to conditionally execute based on the types of the source and target

public interface IConditionalConverter

Methods

Matches(Type, Type)

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

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