Skip to content

Applies to

net10.0, netstandard2.0

public static IObservable<TObject?> WhenAnyPropertyChanged<TObject>(this IObservable<IChangeSet<TObject>> source, params string[] propertiesToMonitor) where TObject : INotifyPropertyChanged

View source

Summary: Watches all items in the source list and emits the item when any of its properties change. Requires TObject to implement INotifyPropertyChanged. This is NOT a changeset operator: it returns a flat IObservable.

Type parameters

NameDescription
TObjectThe type of the object. Must implement INotifyPropertyChanged.

Parameters

NameTypeDescription
sourceIObservable>The source IObservable&lt;IChangeSet&lt;TObject&gt;&gt; to observe property changes on items in.
params propertiesToMonitorstring[]An optional list of property names to monitor. If empty, all property changes are observed.

Returns: IObservable -- An observable emitting the item whenever any monitored property changes.

Remarks

Implemented via MergeMany. Subscriptions are managed per item: created on add, disposed on remove.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

See also