A dictionary wrapper that provides ListChanging and ListChanged events. You can also implement custom behavior by overriding its methods.
More...
A dictionary wrapper that provides ListChanging and ListChanged events. You can also implement custom behavior by overriding its methods.
The Keys and Values properties return ICollection, but this class assumes that mutating these collections is not allowed (mutating them is not allowed, for example, by Dictionary{K,V}). Therefore change notification is not implemented for changes to these collections; these properties simply return the original collection.
- See also
- ListWrapper<TList,T>
- Type Constraints
-
TDictionary | : | IDictionary | |
TDictionary | : | K | |
TDictionary | : | V | |
|
| DictionaryWithChangeEvents (TDictionary dictionary) |
|
virtual bool | TryAdd (K key, V value) |
|
override void | Add (KeyValuePair< K, V > item) |
|
override void | Add (K key, V value) |
|
override void | Clear () |
|
override bool | Remove (KeyValuePair< K, V > item) |
|
override bool | Remove (K key) |
|
virtual void | AddRange (IEnumerable< KeyValuePair< K, V >> list) |
|
virtual void | AddRange (IReadOnlyCollection< KeyValuePair< K, V >> list) |
|
| DictionaryWrapper (TDictionary dictionary) |
|
virtual bool | ContainsKey (K key) |
|
virtual bool | TryGetValue (K key, out V value) |
|
| CollectionWrapper (TCollection collection) |
|
virtual void | Add (T item) |
|
virtual bool | Remove (T item) |
|
virtual bool | Contains (T item) |
|
virtual void | CopyTo (T[] array, int arrayIndex) |
|
virtual IEnumerator< T > | GetEnumerator () |
|