},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
Summary: Binds a source property one way onto a target property of the same type.
Type parameters
| Name | Description |
|---|---|
TSource | The type declaring the observed property. |
TTarget | The type declaring the written property. |
TProp | The type of the value carried across the binding. |
Parameters
| Name | Type | Description |
|---|---|---|
source | TSource | The object to observe. |
target | TTarget | The object to write to. |
sourceProperty | Expression | The property to observe. |
targetProperty | Expression | The property to write. |
scheduler | [IScheduler?](# | The sequencer the 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 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
Summary: Binds a source property one way onto a target property of another type, applying a conversion.
Type parameters
| Name | Description |
|---|---|
TSource | The type declaring the observed property. |
TTarget | The type declaring the written property. |
TSourceProp | The type of the observed property. |
TTargetProp | The type of the written property. |
Parameters
| Name | Type | Description |
|---|---|---|
source | TSource | The object to observe. |
target | TTarget | The object to write to. |
sourceProperty | Expression | The property to observe. |
targetProperty | Expression | The property to write. |
conversion | Func | Converts 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. |
bindingExpression | string | The bound expression, named when a write faults. |
Returns: IDisposable -- A disposable that disconnects the binding.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | conversion is null. |