>
Defined in Type: NotifyPropertyChangedExtensions
Namespace: ReactiveMarbles.PropertyChanged
Assembly: ReactiveMarbles.PropertyChanged.dll
Applies to
netstandard2.0, net462
public static IObservable<TReturn> WhenChanged<TObj, TReturn>(this TObj objectToMonitor, Expression<Func<TObj, TReturn>> propertyExpression) where TObj : class, INotifyPropertyChanged
Summary: Notifies when the specified property changes.
Type parameters
| Name | Description |
|---|---|
TObj | The type of initial object. |
TReturn | The eventual return value. |
Parameters
| Name | Type | Description |
|---|---|---|
objectToMonitor | TObj | The object to monitor. |
propertyExpression | Expression | The expression to the object. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Either the property expression or the object to monitor is null. |
| System.ArgumentException | If there is an issue with the property expression. |