[]
Represents a collection of key/value pairs that are sorted on the key.
public class ObservableSortedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, ICollection<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
Public Class ObservableSortedDictionary(Of TKey, TValue)
Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)), ICollection(Of KeyValuePair(Of TKey, TValue)), IDictionary, ICollection, IReadOnlyDictionary(Of TKey, TValue), IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)), IEnumerable(Of KeyValuePair(Of TKey, TValue)), IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)), IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable
| Name | Description |
|---|---|
| TKey | The type of the keys in the dictionary. |
| TValue | The type of the values in the dictionary. |
| Name | Description |
|---|---|
| ObservableSortedDictionary() | Initializes a new instance of the ObservableSortedDictionary<TKey, TValue> class. |
| ObservableSortedDictionary(IComparer<TKey>) | Initializes a new instance of the ObservableSortedDictionary<TKey, TValue> class. |
| Name | Description |
|---|---|
| m_Items | The underlying SortedDictionary<TKey, TValue>. |
| Name | Description |
|---|---|
| Changed | Gets a value indicating whether list was changed. |
| Count | Gets the number of key/value pairs contained in the SortedDictionary<TKey, TValue>. |
| this[TKey] | Gets or sets the value associated with the specified key. |
| Keys | Gets a collection containing the keys in the ObservableSortedDictionary<TKey, TValue>. |
| Values | Gets a collection containing the values in the SortedDictionary<TKey, TValue>. |
| Name | Description |
|---|---|
| Add(TKey, TValue) | Adds an element with the specified key and value into the ObservableSortedDictionary<TKey, TValue>. |
| AddItem(TKey, TValue) | Adds an element into collection with specified key. |
| Clear() | Removes all elements from the ObservableSortedDictionary<TKey, TValue>. |
| ClearItems() | Removes all elements from the collection. |
| ContainsKey(TKey) | Determines whether the ObservableSortedDictionary<TKey, TValue> contains an element with the specified key. |
| OnChanged() | Called when dictionary was changed, sets Changed to true. |
| Remove(TKey) | Removes the element with the specified key from the ObservableSortedDictionary<TKey, TValue>. |
| RemoveItem(TKey) | Removes an element with specified key. |
| SetItem(TKey, TValue) | Replaces the element with the specified key. |
| TryGetValue(TKey, out TValue) | Gets the value associated with the specified key. |