CollectionChangedHandler<KeyValuePair<K,V>> CollectionChanged |
The change event. Will be raised for every change operation on the collection.
|
CollectionClearedHandler<KeyValuePair<K,V>> CollectionCleared |
The change event. Will be raised for every change operation on the collection.
|
ItemsAddedHandler<KeyValuePair<K,V>> ItemsAdded |
The item added event. Will be raised for every individual addition to the collection.
|
ItemsRemovedHandler<KeyValuePair<K,V>> ItemsRemoved |
The item added event. Will be raised for every individual removal from the collection.
|
EventTypeEnum ActiveEvents | Access: Read-Only
|
Speed ContainsSpeed | Access: Read-Only
Value: |
int Count | Access: Read-Only
Value:The number of entrues in the dictionary |
Speed CountSpeed | Access: Read-Only
Value:The number of entrues in the dictionary |
System.Collections.Generic.IEqualityComparer<K> EqualityComparer | Access: Read-Only
Value: |
Fun<K,V> Fun | Access: Read-Only
|
bool IsEmpty | Access: Read-Only
Value:True if this collection is empty. |
bool IsReadOnly | Access: Read-Only
Value:True if dictionary is read only |
V this[K key] | Access: Read-Write
Value:The value corresponding to the key
Indexer by key for dictionary.
The get method will throw an exception if no entry is found. The set method behaves like UpdateOrAdd(K key, V value). |
ICollectionValue<K> Keys | Access: Read-Only
Value:A collection containg the all the keys of the dictionary |
EventTypeEnum ListenableEvents | Access: Read-Only
|
ICollectionValue<V> Values | Access: Read-Only
Value:A collection containing all the values of the dictionary |
void Add(K key, V value) |
Add a new (key, value) pair (a mapping) to the dictionary.
Parameters: | key: | Key to add | value: | Value to add |
|
void AddAll<L,W>(System.Collections.Generic.IEnumerable<KeyValuePair<L,W>> entries) |
Add the entries from a collection of KeyValuePair<K,V> pairs to this dictionary.
TODO: add restrictions L:K and W:V when the .Net SDK allows it |
bool Check() |
Check the integrity of the internal data structures of this dictionary.
Returns: | True if check does not fail. |
|
KeyValuePair<K,V> Choose() |
Choose some entry in this Dictionary.
|
void Clear() |
Remove all entries from the dictionary
|
A object Clone() | |
bool Contains(K key) |
Check if there is an entry with a specified key
Returns: | True if key was found | Parameters: | key: | The key to look for |
|
bool ContainsAll<H>(System.Collections.Generic.IEnumerable<H> keys) | |
bool Find(K key, out V value) |
Check if there is an entry with a specified key and report the corresponding
value if found. This can be seen as a safe form of "val = this[key]".
Returns: | True if key was found | Parameters: | key: | The key to look for | value: | On exit, the value of the entry |
|
bool Find(ref K key, out V value) |
Check if there is an entry with a specified key and report the corresponding
value if found. This can be seen as a safe form of "val = this[key]".
Returns: | True if key was found | Parameters: | key: | The key to look for | value: | On exit, the value of the entry |
|
bool FindOrAdd(K key, ref V value) |
Look for a specific key in the dictionary. If found, report the corresponding value,
else add an entry with the key and the supplied value.
Returns: | True if key was found | Parameters: | key: | On entry the key to look for | value: | On entry the value to add if the key is not found.
On exit the value found if any. |
|
System.Collections.Generic.IEnumerator<KeyValuePair<K,V>> GetEnumerator() |
Create an enumerator for the collection of entries of the dictionary
|
bool Remove(K key) |
Remove an entry with a given key from the dictionary
Returns: | True if an entry was found (and removed) | Parameters: | key: | The key of the entry to remove |
|
bool Remove(K key, out V value) |
Remove an entry with a given key from the dictionary and report its value.
Returns: | True if an entry was found (and removed) | Parameters: | key: | The key of the entry to remove | value: | On exit, the value of the removed entry |
|
bool Show(System.Text.StringBuilder stringbuilder, ref int rest, System.IFormatProvider formatProvider) | Returns: | | Parameters: | stringbuilder: | | rest: | | formatProvider: | |
|
bool Update(K key, V value) |
Look for a specific key in the dictionary and if found replace the value with a new one.
This can be seen as a non-adding version of "this[key] = val".
Returns: | True if key was found | Parameters: | key: | The key to look for | value: | The new value |
|
bool Update(K key, V value, out V oldvalue) | Returns: | | Parameters: | key: | | value: | | oldvalue: | |
|
bool UpdateOrAdd(K key, V value) |
Update value in dictionary corresponding to key if found, else add new entry.
More general than "this[key] = val;" by reporting if key was found.
Returns: | True if entry was updated. | Parameters: | key: | The key to look for | value: | The value to add or replace with. |
|
bool UpdateOrAdd(K key, V value, out V oldvalue) |
Update value in dictionary corresponding to key if found, else add new entry.
More general than "this[key] = val;" by reporting if key was found and the old value if any.
Returns: | | Parameters: | key: | | value: | | oldvalue: | |
|