RuntimeBindingConverter class¶
Defined in
Namespace: ReactiveUI.Binding.Fallback
Assembly: ReactiveUI.Binding.dll
Full name: ReactiveUI.Binding.Fallback.RuntimeBindingConverter
Modifiers: public static
Summary¶
Runtime conversion entry point used by generated BindTo bindings to coerce a source value
to the target property type when the two differ, or when an explicit converter or conversion hint
is supplied.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Remarks¶
Resolution order matches ReactiveUI: an explicit converter override wins; otherwise the global Current service resolves the best converter for the runtime type pair. When no converter can produce a value, the conversion fails and the generated binding skips the assignment for that emission.
Methods¶
| Name | Summary |
|---|---|
| static TryConvert | Attempts to convert value from TFrom to TTo for a generated BindTo assignment. |