Class AbstractGenericConditionalConverter
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
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
Typethe type of the source object to convert from
targetType
Typethe type of the target object to conver to
Returns
- bool
true if the conversion can be performed