Table of Contents

Interface ISetMethodBindingConverter

Namespace
ReactiveUI
Assembly
ReactiveUI.dll

This converter will allow users to change the way the set functionality is performed in ReactiveUI property binding.

public interface ISetMethodBindingConverter : IEnableLogger

Methods

GetAffinityForObjects(Type?, Type?)

Returns a positive integer when this class supports PerformSet 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'.

int GetAffinityForObjects(Type? fromType, Type? toType)

Parameters

fromType Type

The from type to convert from.

toType Type

The target type to convert to.

Returns

int

A positive integer if PerformSet is supported, zero or a negative value otherwise.

PerformSet(object?, object?, object?[]?)

Convert a given object to the specified type.

object? PerformSet(object? toTarget, object? newValue, object?[]? arguments)

Parameters

toTarget object

The target object we are setting to.

newValue object

The value to set on the new object.

arguments object[]

The arguments required. Used for indexer based values.

Returns

object

The value that was set.