GetWeakCollectionChangedObservable Method
Gets a weak observable for the CollectionChanged event.
Definition
Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static IObservable<NotifyCollectionChangedEventArgs> GetWeakCollectionChangedObservable(
this INotifyCollectionChanged collection
)
<ExtensionAttribute>
Public Shared Function GetWeakCollectionChangedObservable (
collection As INotifyCollectionChanged
) As IObservable(Of NotifyCollectionChangedEventArgs)
[<ExtensionAttribute>]
static member GetWeakCollectionChangedObservable :
collection : INotifyCollectionChanged -> IObservable<NotifyCollectionChangedEventArgs>
Parameters
- INotifyCollectionChanged
- The collection.
Return Value
IObservable(NotifyCollectionChangedEventArgs)
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
Reference
NotifyCollectionChangedExtensions Class
Avalonia.Collections Namespace