Interface INotifyCollection<TItem>
- Namespace
- Ecng.Collections
- Assembly
- Ecng.Collections.dll
Represents a collection that notifies about its changes.
public interface INotifyCollection<TItem> : ICollection<TItem>, IEnumerable<TItem>, IEnumerableType Parameters
- TItem
- The type of elements in the collection. 
- Inherited Members
- Extension Methods
Events
Added
Occurs after an item has been added.
event Action<TItem> AddedEvent Type
- Action<TItem>
Adding
Occurs before adding an item, allowing cancellation.
event Func<TItem, bool> AddingEvent Type
Changed
Occurs when a change happens in the collection.
event Action ChangedEvent Type
Cleared
Occurs after the collection has been cleared.
event Action ClearedEvent Type
Clearing
Occurs before clearing the collection, allowing cancellation.
event Func<bool> ClearingEvent Type
Inserted
Occurs after an item has been inserted at a specific index.
event Action<int, TItem> InsertedEvent Type
Inserting
Occurs before inserting an item at a specified index, allowing cancellation.
event Func<int, TItem, bool> InsertingEvent Type
Removed
Occurs after an item has been removed.
event Action<TItem> RemovedEvent Type
- Action<TItem>
Removing
Occurs before removing an item, allowing cancellation.
event Func<TItem, bool> RemovingEvent Type
RemovingAt
Occurs before removing an item at a specific index, allowing cancellation.
event Func<int, bool> RemovingAt