The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

IBindingTypeConverter.

GetAffinityForObjects(Type, Type) Method

Summary

Returns a positive integer when this class supports TryConvert for this particular Type. If the method isn't supported at all, return a non-positive integer. When multiple implementations return a positive value, the host will use the one which returns the highest value. When in doubt, return '2' or '0'.
Namespace
ReactiveUI
Containing Type
IBindingTypeConverter

Syntax

int GetAffinityForObjects(Type fromType, Type toType)

Parameters

Name Type Description
fromType Type The source type to convert from.
toType Type The target type to convert to.

Return Value

Type Description
int A positive integer if TryConvert is supported, zero or a negative value otherwise.