PanelSetMethodBindingConverter.GetAffinityForObjects(Type?, Type?) method¶
Defined in
Type: PanelSetMethodBindingConverter
Namespace: ReactiveUI.Winforms
Assembly: ReactiveUI.Winforms.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net462, net481
public int GetAffinityForObjects(Type? fromType, Type? toType)
Inherited documentation
These docs were inherited from ISetMethodBindingConverter. The member doesn't override them on this type.
Summary: 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'.
Parameters
| Name | Type | Description |
|---|---|---|
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.