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}},System.Func{--2,--3},System.Reactive.Concurrency.IScheduler,System.String)}

RuntimeBindingFallback.BindOneWay(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 BindOneWay<TSource, TTarget, TProp>(TSource source, TTarget target, Expression<Func<TSource, TProp>> sourceProperty, Expression<Func<TTarget, TProp>> targetProperty, IScheduler? scheduler, string bindingExpression) where TSource : class
  • 2. public static IDisposable BindOneWay<TSource, TTarget, TSourceProp, TTargetProp>(TSource source, TTarget target, Expression<Func<TSource, TSourceProp>> sourceProperty, Expression<Func<TTarget, TTargetProp>> targetProperty, Func<TSourceProp, TTargetProp> conversion, IScheduler? scheduler, string bindingExpression) where TSource : class

1. Overload

Attributes: [RequiresUnreferencedCode("Runtime binding fallback resolves the property chain by reflection.")]

public static IDisposable BindOneWay<TSource, TTarget, TProp>(TSource source, TTarget target, Expression<Func<TSource, TProp>> sourceProperty, Expression<Func<TTarget, TProp>> targetProperty, IScheduler? scheduler, string bindingExpression) where TSource : class

View source

Summary: Binds a source property one way onto a target property of the same type.

Type parameters

NameDescription
TSourceThe type declaring the observed property.
TTargetThe type declaring the written property.
TPropThe type of the value carried across the binding.

Parameters

NameTypeDescription
sourceTSourceThe object to observe.
targetTTargetThe object to write to.
sourcePropertyExpression>The property to observe.
targetPropertyExpression>The property to write.
scheduler[IScheduler?](#The sequencer the 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 the binding.

2. Overload

Attributes: [RequiresUnreferencedCode("Runtime binding fallback resolves the property chain by reflection.")]

public static IDisposable BindOneWay<TSource, TTarget, TSourceProp, TTargetProp>(TSource source, TTarget target, Expression<Func<TSource, TSourceProp>> sourceProperty, Expression<Func<TTarget, TTargetProp>> targetProperty, Func<TSourceProp, TTargetProp> conversion, IScheduler? scheduler, string bindingExpression) where TSource : class

View source

Summary: Binds a source property one way onto a target property of another type, applying a conversion.

Type parameters

NameDescription
TSourceThe type declaring the observed property.
TTargetThe type declaring the written property.
TSourcePropThe type of the observed property.
TTargetPropThe type of the written property.

Parameters

NameTypeDescription
sourceTSourceThe object to observe.
targetTTargetThe object to write to.
sourcePropertyExpression>The property to observe.
targetPropertyExpression>The property to write.
conversionFuncConverts the observed value to the written one.
scheduler[IScheduler?](#The sequencer the 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 the binding.

Exceptions

TypeCondition
System.ArgumentNullExceptionconversion is null.