Skip to content

},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

View source

Summary: Binds a source and a target property of the same type to each other.

Type parameters

NameDescription
TSourceThe type declaring the source property.
TTargetThe type declaring the target property.
TPropThe type of the value carried across the binding.

Parameters

NameTypeDescription
sourceTSourceThe first object of the binding.
targetTTargetThe second object of the binding.
sourcePropertyExpression>The property on source.
targetPropertyExpression>The property on target.
scheduler[IScheduler?](#The sequencer the target write is delivered on, or null to write on the thread that owns it.
bindingExpressionstringThe 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

View source

Summary: Binds a source and a target property of differing types to each other, converting in both directions.

Type parameters

NameDescription
TSourceThe type declaring the source property.
TTargetThe type declaring the target property.
TSourcePropThe type of the source property.
TTargetPropThe type of the target property.

Parameters

NameTypeDescription
sourceTSourceThe first object of the binding.
targetTTargetThe second object of the binding.
sourcePropertyExpression>The property on source.
targetPropertyExpression>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.
bindingExpressionstringThe bound expression, named when a write faults.

Returns: IDisposable -- A disposable that disconnects both directions.

Exceptions

TypeCondition
System.ArgumentNullExceptionconverters is null.