Click or drag to resize

ObservableDictionaryTKey, TValue Class

Helper class providing an observable dictionary which sends notifications on add, remove and change.
Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.Map.ToolsObservableDictionaryTKey, TValue

Namespace:  Ptv.XServer.Controls.Map.Tools
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable, INotifyCollectionChanged

Type Parameters

TKey
Type of the entry keys.
TValue
Type of the entry values.

The ObservableDictionaryTKey, TValue type exposes the following members.

Constructors
  NameDescription
Public methodObservableDictionaryTKey, TValue
Initializes a new instance of the ObservableDictionaryTKey, TValue class. Simple constructor of the ObservableDictionary class taking no parameters.
Public methodObservableDictionaryTKey, TValue(IDictionaryTKey, TValue)
Initializes a new instance of the ObservableDictionaryTKey, TValue class.
Public methodObservableDictionaryTKey, TValue(IEqualityComparerTKey)
Initializes a new instance of the ObservableDictionaryTKey, TValue class.
Public methodObservableDictionaryTKey, TValue(Int32)
Initializes a new instance of the ObservableDictionaryTKey, TValue class.
Public methodObservableDictionaryTKey, TValue(IDictionaryTKey, TValue, IEqualityComparerTKey)
Initializes a new instance of the ObservableDictionaryTKey, TValue class.
Public methodObservableDictionaryTKey, TValue(Int32, IEqualityComparerTKey)
Initializes a new instance of the ObservableDictionaryTKey, TValue class.
Top
Properties
  NameDescription
Public propertyCount
Gets the count of elements in the dictionary. See Count.
Public propertyIsReadOnly
Gets a value indicating whether the dictionary is observable. See IsReadOnly.
Public propertyItem
Finds the value matching with a given key.
Public propertyKeys
Gets the collection of keys in the dictionary. See Keys.
Public propertyValues
Gets the collection of values in the dictionary. See Values.
Top
Methods
  NameDescription
Public methodAdd(KeyValuePairTKey, TValue)
Adds a key value pair to the dictionary.
Public methodAdd(TKey, TValue)
Adds a new key value pair to the dictionary.
Public methodClear
Clears the dictionary and removes all items.
Public methodContains
Contains(T)
Public methodContainsKey
ContainsKey(TKey)
Public methodCopyTo
CopyTo(T, Int32)
Public methodGetEnumerator
GetEnumerator
Public methodRemove(KeyValuePairTKey, TValue)
Removes a given item from the dictionary.
Public methodRemove(TKey)
Removes a certain item from the dictionary.
Public methodTryGetValue
TryGetValue(TKey, TValue)
Top
Events
  NameDescription
Public eventCollectionChanged
The event which is sent on a change.
Top
Extension Methods
See Also