I was trying to implement a specialized collection that works like ObservableCollection
to encapsulate some more mechanisms in it, to do that i also let my collection inherit from Collection
and i also implement the same interfaces.
I just do not get though how one actually implements the whole collection-changed-logic, for example Collection<T>.Add
is not being overridden (it is not even marked as virtual), so how does the ObservableCollection
fire the CollectionChanged
event if items were added using that method?