Class ObservableDictionary<TKey, TValue>
Inheritance
System.Object
ObservableDictionary<TKey, TValue>
Implements
ICollection<KeyValuePair<TKey, TValue>>
IEnumerable<KeyValuePair<TKey, TValue>>
IDictionary
ICollection
IEnumerable
ISerializable
IDeserializationCallback
INotifyCollectionChanged
INotifyPropertyChanged
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>
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 |
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 |
IDictionary<TKey, TValue> |
dictionary |
|
IEqualityComparer<TKey> |
comparer |
|
|
Improve this Doc
View Source
ObservableDictionary(IEqualityComparer<TKey>)
Declaration
public ObservableDictionary(IEqualityComparer<TKey> comparer)
Parameters
Type |
Name |
Description |
IEqualityComparer<TKey> |
comparer |
|
|
Improve this Doc
View Source
ObservableDictionary(SerializationInfo, StreamingContext)
Declaration
protected ObservableDictionary(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
SerializationInfo |
info |
|
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 |
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 |
Dictionary.KeyCollection<> |
|
|
Improve this Doc
View Source
Values
Declaration
public Dictionary<TKey, TValue>.ValueCollection Values { get; }
Property Value
Type |
Description |
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 |
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 |
|
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 |
SerializationInfo |
info |
|
StreamingContext |
context |
|
|
Improve this Doc
View Source
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
Type |
Name |
Description |
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 |
NotifyCollectionChangedEventHandler |
|
|
Improve this Doc
View Source
PropertyChanged
Declaration
protected virtual event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
PropertyChangedEventHandler |
|
Implements
ICollection<>
IEnumerable<>
IDictionary
ICollection
IEnumerable
ISerializable
IDeserializationCallback
INotifyCollectionChanged
INotifyPropertyChanged