Implementing Document-View pattern I faced the problem: standard generic collections and dictionaries (List<T>
, HashSet<T>
for example) don't provide events for modification (OnBeforeAdd, OnAfterAdd, OnRemove, Freeze/Unfreeze methods... )
I suppose events were not implemented for optimization purposes but I have to use and listen for such events using Document class.
I searched Inet for a while and found some demo implementations for lists. Is there well-known production-proved library with complete set of eventable generic collections/dictionaries or shall I implement such collections by myself?
Thank you in advance!