Table of Contents

Class NotifyCollectionChangedExtensions

Namespace
CarinaStudio.Collections
Assembly
CarinaStudio.AppBase.Core.dll

Extensions for INotifyCollectionChanged.

public static class NotifyCollectionChangedExtensions
Inheritance
NotifyCollectionChangedExtensions
Inherited Members

Methods

AddWeakCollectionChangedEventHandler(INotifyCollectionChanged, NotifyCollectionChangedEventHandler)

Add weak event handler to CollectionChanged.

public static IDisposable AddWeakCollectionChangedEventHandler(this INotifyCollectionChanged target, NotifyCollectionChangedEventHandler handler)

Parameters

target INotifyCollectionChanged

INotifyCollectionChanged.

handler NotifyCollectionChangedEventHandler

Event handler.

Returns

IDisposable

IDisposable which represents added weak event handler. You can call Dispose() to remove weak event handler explicitly.