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
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
objectThe target object we are setting to.
newValue
objectThe value to set on the new object.
arguments
object[]The arguments required. Used for indexer based values.
Returns
- object
The value that was set.