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
- Extension Methods
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'.
[RequiresDynamicCode("GetAffinityForObjects uses methods that require dynamic code generation")]
[RequiresUnreferencedCode("GetAffinityForObjects uses methods that may require unreferenced code")]
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
toTargetobjectThe target object we are setting to.
newValueobjectThe value to set on the new object.
argumentsobject[]The arguments required. Used for indexer based values.
Returns
- object
The value that was set.