Interface IConditionalConverter
Allows a converter to conditionally execute based on the types of the source and target
Namespace: Steeltoe.Common.Converter
Assembly: Steeltoe.Common.Abstractions.dll
Syntax
public interface IConditionalConverter
Methods
| Edit this page View SourceMatches(Type, Type)
Can the conversion from source type to target type be performed by this converter
Declaration
bool Matches(Type sourceType, Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | sourceType | the type of the source object to convert from |
Type | targetType | the type of the target object to conver to |
Returns
Type | Description |
---|---|
System.Boolean | true if the conversion can be performed |