Class ObservableDictionary<TKey, TValue>
Inheritance
System.Object
ObservableDictionary<TKey, TValue>
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
public sealed class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|
Constructors
|
Improve this Doc
View Source
ObservableDictionary()
Declaration
public ObservableDictionary()
|
Improve this Doc
View Source
ObservableDictionary(IEqualityComparer<TKey>)
Declaration
public ObservableDictionary(IEqualityComparer<TKey> comparer)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEqualityComparer<TKey> |
comparer |
|
|
Improve this Doc
View Source
ObservableDictionary(Int32)
Declaration
public ObservableDictionary(int capacity)
Parameters
| Type |
Name |
Description |
| System.Int32 |
capacity |
|
|
Improve this Doc
View Source
ObservableDictionary(Int32, IEqualityComparer<TKey>)
Declaration
public ObservableDictionary(int capacity, IEqualityComparer<TKey> comparer)
Parameters
| Type |
Name |
Description |
| System.Int32 |
capacity |
|
| System.Collections.Generic.IEqualityComparer<TKey> |
comparer |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Item[TKey]
Declaration
public TValue this[TKey key] { get; set; }
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public ICollection<TKey> Keys { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.ICollection<TKey> |
|
|
Improve this Doc
View Source
Values
Declaration
public ICollection<TValue> Values { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.ICollection<TValue> |
|
Methods
|
Improve this Doc
View Source
Add(TKey, TValue)
Declaration
public void Add(TKey key, TValue value)
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
| TValue |
value |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
ContainsKey(TKey)
Declaration
public bool ContainsKey(TKey key)
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ContainsValue(TValue)
Declaration
public bool ContainsValue(TValue value)
Parameters
| Type |
Name |
Description |
| TValue |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>> |
|
|
Improve this Doc
View Source
Remove(TKey)
Declaration
public bool Remove(TKey key)
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
TryGetValue(TKey, out TValue)
Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
| TValue |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
Events
|
Improve this Doc
View Source
AddItem
Declaration
public event ObservableDictionary<TKey, TValue>.AddItemEventHandler AddItem
Event Type
|
Improve this Doc
View Source
BeforeAddItem
Declaration
public event ObservableDictionary<TKey, TValue>.BeforeAddItemEventHandler BeforeAddItem
Event Type
|
Improve this Doc
View Source
BeforeRemoveItem
Declaration
public event ObservableDictionary<TKey, TValue>.BeforeRemoveItemEventHandler BeforeRemoveItem
Event Type
|
Improve this Doc
View Source
RemoveItem
Declaration
public event ObservableDictionary<TKey, TValue>.RemoveItemEventHandler RemoveItem
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue>)
Declaration
void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.KeyValuePair<TKey, TValue> |
item |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue>)
Declaration
bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.KeyValuePair<TKey, TValue> |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[], Int32)
Declaration
void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.KeyValuePair<TKey, TValue>[] |
array |
|
| System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue>)
Declaration
bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.KeyValuePair<TKey, TValue> |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable