Table of Contents

Class FallbackObjectToStringConverter

Namespace
Steeltoe.Common.Converter
Assembly
Steeltoe.Common.dll
public class FallbackObjectToStringConverter : AbstractConverter<object, string>, IConditionalGenericConverter, IConditionalConverter, IGenericConverter, IConverter<object, string>
Inheritance
FallbackObjectToStringConverter
Implements
Inherited Members

Methods

Convert(object)

Convert the source object of type S to a target object of type T.

public override string Convert(object source)

Parameters

source object

the source object to convert; can not be null

Returns

string

the converted object which must be type T

Matches(Type, Type)

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

public override 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