},System.Linq.Expressions.Expression{System.Func{--1,--2}},System.Reactive.Concurrency.IScheduler,System.String)} },System.Linq.Expressions.Expression{System.Func{--1,--3}},ReactiveUI.Binding.Reactive.Fallback.TwoWayConverterPair{--2,--3},System.Reactive.Concurrency.IScheduler,System.String)}
RuntimeBindingFallback.BindTwoWay(TSource, TTarget, Expression>, Expression>, IScheduler?, string) method¶
Defined in
Type: RuntimeBindingFallback
Namespace: ReactiveUI.Binding.Reactive.Fallback
Assembly: ReactiveUI.Binding.Reactive.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-ios18.0, net9.0-macos15.0, net9.0-desktop1.0, net8.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, netstandard2.1, net481, net462, net471
Overloads¶
- 1.
public static IDisposable BindTwoWay<TSource, TTarget, TProp>(TSource source, TTarget target, Expression<Func<TSource, TProp>> sourceProperty, Expression<Func<TTarget, TProp>> targetProperty, IScheduler? scheduler, string bindingExpression) where TSource : class where TTarget : class - 2.
public static IDisposable BindTwoWay<TSource, TTarget, TSourceProp, TTargetProp>(TSource source, TTarget target, Expression<Func<TSource, TSourceProp>> sourceProperty, Expression<Func<TTarget, TTargetProp>> targetProperty, TwoWayConverterPair<TSourceProp, TTargetProp> converters, IScheduler? scheduler, string bindingExpression) where TSource : class where TTarget : class
1. Overload¶
Attributes: [RequiresUnreferencedCode("Runtime binding fallback resolves the property chain by reflection.")]
public static IDisposable BindTwoWay<TSource, TTarget, TProp>(TSource source, TTarget target, Expression<Func<TSource, TProp>> sourceProperty, Expression<Func<TTarget, TProp>> targetProperty, IScheduler? scheduler, string bindingExpression) where TSource : class where TTarget : class
Summary: Binds a source and a target property of the same type to each other.
Type parameters
| Name | Description |
|---|---|
TSource | The type declaring the source property. |
TTarget | The type declaring the target property. |
TProp | The type of the value carried across the binding. |
Parameters
| Name | Type | Description |
|---|---|---|
source | TSource | The first object of the binding. |
target | TTarget | The second object of the binding. |
sourceProperty | Expression | The property on source. |
targetProperty | Expression | The property on target. |
scheduler | [IScheduler?](# | The sequencer the target write is delivered on, or null to write on the thread that owns it. |
bindingExpression | string | The bound expression, named when a write faults. |
Returns: IDisposable -- A disposable that disconnects both directions.
2. Overload¶
Attributes: [RequiresUnreferencedCode("Runtime binding fallback resolves the property chain by reflection.")]
public static IDisposable BindTwoWay<TSource, TTarget, TSourceProp, TTargetProp>(TSource source, TTarget target, Expression<Func<TSource, TSourceProp>> sourceProperty, Expression<Func<TTarget, TTargetProp>> targetProperty, TwoWayConverterPair<TSourceProp, TTargetProp> converters, IScheduler? scheduler, string bindingExpression) where TSource : class where TTarget : class
Summary: Binds a source and a target property of differing types to each other, converting in both directions.
Type parameters
| Name | Description |
|---|---|
TSource | The type declaring the source property. |
TTarget | The type declaring the target property. |
TSourceProp | The type of the source property. |
TTargetProp | The type of the target property. |
Parameters
| Name | Type | Description |
|---|---|---|
source | TSource | The first object of the binding. |
target | TTarget | The second object of the binding. |
sourceProperty | Expression | The property on source. |
targetProperty | Expression | The property on target. |
converters | [TwoWayConverterPair | Converts source to target, and target back to source. |
scheduler | [IScheduler?](# | The sequencer the target write is delivered on, or null to write on the thread that owns it. |
bindingExpression | string | The bound expression, named when a write faults. |
Returns: IDisposable -- A disposable that disconnects both directions.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | converters is null. |