Skip to content

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

View source

Summary: Runtime fallback for WhenChanged with a single property.

Type parameters

NameDescription
TObjThe type of object being observed.
TValueThe type of the property value.

Parameters

NameTypeDescription
objTObjThe object to observe.
propertyExpression>The property expression.

Returns: IObservable -- An observable that emits property values after they change.

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

View source

Summary: Runtime fallback for multi-property WhenChanged, returning a tuple of values.

Type parameters

NameDescription
TObjThe type of object being observed.
T1The type of the first property value.
T2The type of the second property value.

Parameters

NameTypeDescription
objTObjThe object to observe.
property1Expression>The first property expression.
property2Expression>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

View source

Summary: Runtime fallback for multi-property WhenChanged with 3 properties.

Type parameters

NameDescription
TObjThe type of object being observed.
T1The type of the first property value.
T2The type of the second property value.
T3The type of the third property value.

Parameters

NameTypeDescription
objTObjThe object to observe.
property1Expression>The first property expression.
property2Expression>The second property expression.
property3Expression>The third property expression.

Returns: IObservable<(T1 Value1, T2 Value2, T3 Value3)> -- An observable that emits a tuple of property values when any changes.