Method OnItemRemoved
OnItemRemoved(object?, int, T)
Invoked when an item is removed from the collection.
protected virtual void OnItemRemoved(object? sender, int index, T item)
Parameters
senderobjectThe source of the event, typically the collection from which the item was removed.
indexintThe zero-based index at which the item was removed.
itemTThe item that was removed from the collection.
Remarks
This method is called to notify derived classes of item removal. Override this method in a subclass to handle the event when an item is removed.