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.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Simplic.Framework.DBUI.dll
Syntax
[Serializable]
public class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IEnumerable, ISerializable, IDeserializationCallback, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
|
Improve this Doc
View Source
ObservableDictionary()
Declaration
public ObservableDictionary()
|
Improve this Doc
View Source
ObservableDictionary(IDictionary<TKey, TValue>)
Declaration
public ObservableDictionary(IDictionary<TKey, TValue> dictionary)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<TKey, TValue> |
dictionary |
|
|
Improve this Doc
View Source
ObservableDictionary(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)
Declaration
public ObservableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<TKey, TValue> |
dictionary |
|
System.Collections.Generic.IEqualityComparer<TKey> |
comparer |
|
|
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(SerializationInfo, StreamingContext)
Declaration
protected ObservableDictionary(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
|
System.Runtime.Serialization.StreamingContext |
context |
|
Fields
|
Improve this Doc
View Source
_keyedEntryCollection
Declaration
protected ObservableDictionary<TKey, TValue>.KeyedDictionaryEntryCollection<TKey> _keyedEntryCollection
Field Value
Properties
|
Improve this Doc
View Source
Comparer
Declaration
public IEqualityComparer<TKey> Comparer { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEqualityComparer<TKey> |
|
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
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 Dictionary<TKey, TValue>.KeyCollection Keys { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary.KeyCollection<> |
|
|
Improve this Doc
View Source
Values
Declaration
public Dictionary<TKey, TValue>.ValueCollection Values { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary.ValueCollection<> |
|
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
AddEntry(TKey, TValue)
Declaration
protected virtual bool AddEntry(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
ClearEntries()
Declaration
protected virtual bool ClearEntries()
Returns
Type |
Description |
System.Boolean |
|
|
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 GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
|
Improve this Doc
View Source
GetIndexAndEntryForKey(TKey, out DictionaryEntry)
Declaration
protected int GetIndexAndEntryForKey(TKey key, out DictionaryEntry entry)
Parameters
Type |
Name |
Description |
TKey |
key |
|
System.Collections.DictionaryEntry |
entry |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
|
System.Runtime.Serialization.StreamingContext |
context |
|
|
Improve this Doc
View Source
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventArgs |
args |
|
|
Improve this Doc
View Source
OnDeserialization(Object)
Declaration
public virtual void OnDeserialization(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
|
Improve this Doc
View Source
OnPropertyChanged(String)
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
|
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
RemoveEntry(TKey)
Declaration
protected virtual bool RemoveEntry(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetEntry(TKey, TValue)
Declaration
protected virtual bool SetEntry(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
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
CollectionChanged
Declaration
protected virtual event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|
|
Improve this Doc
View Source
PropertyChanged
Declaration
protected virtual event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
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> kvp)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<TKey, TValue> |
kvp |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Clear()
Declaration
void ICollection<KeyValuePair<TKey, TValue>>.Clear()
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue>)
Declaration
bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> kvp)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<TKey, TValue> |
kvp |
|
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 index)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<TKey, TValue>[] |
array |
|
System.Int32 |
index |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Count
Declaration
int ICollection<KeyValuePair<TKey, TValue>>.Count { get; }
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
Declaration
bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly { get; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue>)
Declaration
bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> kvp)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<TKey, TValue> |
kvp |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.Add(TKey, TValue)
Declaration
void IDictionary<TKey, TValue>.Add(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.ContainsKey(TKey)
Declaration
bool IDictionary<TKey, TValue>.ContainsKey(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.Item[TKey]
Declaration
TValue IDictionary<TKey, TValue>.this[TKey key] { get; set; }
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.Keys
Declaration
ICollection<TKey> IDictionary<TKey, TValue>.Keys { get; }
Returns
Type |
Description |
System.Collections.Generic.ICollection<TKey> |
|
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.Remove(TKey)
Declaration
bool IDictionary<TKey, TValue>.Remove(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.TryGetValue(TKey, out TValue)
Declaration
bool IDictionary<TKey, TValue>.TryGetValue(TKey key, out TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary<TKey, TValue>.Values
Declaration
ICollection<TValue> IDictionary<TKey, TValue>.Values { get; }
Returns
Type |
Description |
System.Collections.Generic.ICollection<TValue> |
|
|
Improve this Doc
View Source
IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
Declaration
IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>> |
|
|
Improve this Doc
View Source
ICollection.CopyTo(Array, Int32)
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
Type |
Name |
Description |
System.Array |
array |
|
System.Int32 |
index |
|
|
Improve this Doc
View Source
ICollection.Count
Declaration
int ICollection.Count { get; }
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ICollection.IsSynchronized
Declaration
bool ICollection.IsSynchronized { get; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ICollection.SyncRoot
Declaration
object ICollection.SyncRoot { get; }
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
IDictionary.Add(Object, Object)
Declaration
void IDictionary.Add(object key, object value)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
System.Object |
value |
|
|
Improve this Doc
View Source
IDictionary.Clear()
Declaration
|
Improve this Doc
View Source
IDictionary.Contains(Object)
Declaration
bool IDictionary.Contains(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary.GetEnumerator()
Declaration
IDictionaryEnumerator IDictionary.GetEnumerator()
Returns
Type |
Description |
System.Collections.IDictionaryEnumerator |
|
|
Improve this Doc
View Source
IDictionary.IsFixedSize
Declaration
bool IDictionary.IsFixedSize { get; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary.IsReadOnly
Declaration
bool IDictionary.IsReadOnly { get; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IDictionary.Item[Object]
Declaration
object IDictionary.this[object key] { get; set; }
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
IDictionary.Keys
Declaration
ICollection IDictionary.Keys { get; }
Returns
Type |
Description |
System.Collections.ICollection |
|
|
Improve this Doc
View Source
IDictionary.Remove(Object)
Declaration
void IDictionary.Remove(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
|
Improve this Doc
View Source
IDictionary.Values
Declaration
ICollection IDictionary.Values { get; }
Returns
Type |
Description |
System.Collections.ICollection |
|
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
|
Improve this Doc
View Source
INotifyCollectionChanged.CollectionChanged
Declaration
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged
Returns
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|
|
Improve this Doc
View Source
INotifyPropertyChanged.PropertyChanged
Declaration
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged
Returns
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
Extension Methods