The ObservableDictionary class is used for
storing key/value pairs. It has methods for firing events to
subscribers when items are added, removed, or changed.
Declaration Syntax
C# |
public class ObservableDictionary<TKey, TValue>
Generic Template
Parameters
- TKey
- Key Tkey
- TValue
- Value TValue
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
ObservableDictionary < (Of < ( <' TKey, TValue > ) > ) > () () () () |
Initializes a new instance of the Class with
the specified key/value, has the default initial capacity.
|
|
ObservableDictionary < (Of < ( <' TKey, TValue > ) > ) > (Int32) |
Initializes a new instance of the Class with
the specified key/value, With its initial capacity specified.
|
|
Add(TKey, TValue) |
Adds the specified key to the dictionary,
dictionary locking is not performed,
[!:SafeAdd]
|
|
AddDelegate(DictionaryEventAction, DictionaryChangeCallback) |
Register a callback to be fired when an action
occurs
|
|
Clear () () () () |
Clear the contents of the dictionary
|
|
ContainsKey(TKey) |
Check if Key exists in Dictionary
|
|
ContainsValue(TValue) |
Check if Value exists in Dictionary
|
|
Count |
Gets the number of Key/Value pairs contained
in the
|
|
Find(Predicate < (Of < <' ( TValue > ) > > ) ) |
Finds the specified match.
|
|
FindAll(Predicate < (Of < <' ( TValue > ) > > ) ) |
Find All items in an
|
|
FindAll(Predicate < (Of < <' ( TKey > ) > > ) ) |
Find All items in an
|
|
GetEnumerator () () () () |
Enumerator for iterating dictionary
entries
|
|
Item [ ( [ ( TKey ] ) ] ) |
Indexer for the dictionary
|
|
Remove(TKey) |
Removes the specified key, dictionary locking
is not performed
|
|
RemoveDelegate(DictionaryEventAction, DictionaryChangeCallback) |
Unregister a callback
|
|
TryGetValue(TKey, TValue % ) |
Try to get entry from the with specified
key
|
Inheritance Hierarchy
Object | |
ObservableDictionary < (Of < ( <' TKey, TValue > ) > ) > |
Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)