})} },System.Linq.Expressions.Expression{System.Func{--0,--2}})} },System.Linq.Expressions.Expression{System.Func{--0,--2}},System.Linq.Expressions.Expression{System.Func{--0,--3}})}
RuntimeObservationFallback.WhenChanged(TObj, Expression>) method¶
Defined in
Type: RuntimeObservationFallback
Namespace: ReactiveUI.Binding.Fallback
Assembly: ReactiveUI.Binding.dll
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
Overloads¶
- 1.
public static IObservable<TValue> WhenChanged<TObj, TValue>(TObj obj, Expression<Func<TObj, TValue>> property) where TObj : class - 2.
public static IObservable<(T1 Value1, T2 Value2)> WhenChanged<TObj, T1, T2>(TObj obj, Expression<Func<TObj, T1>> property1, Expression<Func<TObj, T2>> property2) where TObj : class - 3.
public static IObservable<(T1 Value1, T2 Value2, T3 Value3)> WhenChanged<TObj, T1, T2, T3>(TObj obj, Expression<Func<TObj, T1>> property1, Expression<Func<TObj, T2>> property2, Expression<Func<TObj, T3>> property3) where TObj : class
1. Overload¶
public static IObservable<TValue> WhenChanged<TObj, TValue>(TObj obj, Expression<Func<TObj, TValue>> property) where TObj : class
Summary: Runtime fallback for WhenChanged with a single property.
Type parameters
| Name | Description |
|---|---|
TObj | The type of object being observed. |
TValue | The type of the property value. |
Parameters
| Name | Type | Description |
|---|---|---|
obj | TObj | The object to observe. |
property | Expression | The property expression. |
Returns: IObservable
2. Overload¶
public static IObservable<(T1 Value1, T2 Value2)> WhenChanged<TObj, T1, T2>(TObj obj, Expression<Func<TObj, T1>> property1, Expression<Func<TObj, T2>> property2) where TObj : class
Summary: Runtime fallback for multi-property WhenChanged, returning a tuple of values.
Type parameters
| Name | Description |
|---|---|
TObj | The type of object being observed. |
T1 | The type of the first property value. |
T2 | The type of the second property value. |
Parameters
| Name | Type | Description |
|---|---|---|
obj | TObj | The object to observe. |
property1 | Expression | The first property expression. |
property2 | Expression | The second property expression. |
Returns: IObservable<(T1 Value1, T2 Value2)> -- An observable that emits a tuple of property values when any changes.
3. Overload¶
public static IObservable<(T1 Value1, T2 Value2, T3 Value3)> WhenChanged<TObj, T1, T2, T3>(TObj obj, Expression<Func<TObj, T1>> property1, Expression<Func<TObj, T2>> property2, Expression<Func<TObj, T3>> property3) where TObj : class
Summary: Runtime fallback for multi-property WhenChanged with 3 properties.
Type parameters
| Name | Description |
|---|---|
TObj | The type of object being observed. |
T1 | The type of the first property value. |
T2 | The type of the second property value. |
T3 | The type of the third property value. |
Parameters
| Name | Type | Description |
|---|---|---|
obj | TObj | The object to observe. |
property1 | Expression | The first property expression. |
property2 | Expression | The second property expression. |
property3 | Expression | The third property expression. |
Returns: IObservable<(T1 Value1, T2 Value2, T3 Value3)> -- An observable that emits a tuple of property values when any changes.