NotifyCollectionChangedExtensionsGetWeakCollectionChangedObservable Method

Gets a weak observable for the CollectionChanged event.

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IObservable<NotifyCollectionChangedEventArgs> GetWeakCollectionChangedObservable(
	this INotifyCollectionChanged collection
)

Parameters

collection  INotifyCollectionChanged
The collection.

Return Value

IObservableNotifyCollectionChangedEventArgs
An observable.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type INotifyCollectionChanged. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also