s&box docs
API ReferenceSystem.Collections.ObjectModel

public class System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>

A dictionary with callbacks for when changes occur.

Constructors

Showing 6 constructors

Methods

Showing 12 methods

public void AddRange(System.Collections.Generic.IDictionary`2<TKey,TValue> items)

public virtual sealed void Clear()

public virtual sealed bool Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue> item)

public virtual sealed bool ContainsKey(TKey key)

public virtual sealed void CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[] array, int arrayIndex)

public virtual sealed System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> GetEnumerator()

protected virtual void OnPropertyChanged(string propertyName)

Called when a property (such as element count) of the dictionary has changed.

public virtual sealed bool TryGetValue(TKey key, TValue value)

Properties

Showing 6 properties

public virtual sealed int System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Count { get; set; }

protected System.Collections.Generic.IDictionary`2<TKey,TValue> System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Dictionary { get; set; }

The dictionary being observed.

public virtual sealed bool System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.IsReadOnly { get; set; }

public virtual sealed TValue System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Item { get; set; }

public virtual sealed System.Collections.Generic.ICollection`1<TKey> System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Keys { get; set; }

public virtual sealed System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Values { get; set; }

Metadata

FieldValue
NamespaceSystem.Collections.ObjectModel
Typeclass
AssemblySandbox.System
Doc IDT:System.Collections.ObjectModel.ObservableDictionary`2

On this page

Constructorspublic ObservableDictionary<TKey,TValue>()public ObservableDictionary<TKey,TValue>(System.Collections.Generic.IDictionary`2<TKey,TValue> dictionary, System.Collections.Generic.IEqualityComparer`1<TKey> comparer)public ObservableDictionary<TKey,TValue>(System.Collections.Generic.IDictionary`2<TKey,TValue> dictionary)public ObservableDictionary<TKey,TValue>(System.Collections.Generic.IEqualityComparer`1<TKey> comparer)public ObservableDictionary<TKey,TValue>(System.Int32 capacity, System.Collections.Generic.IEqualityComparer`1<TKey> comparer)public ObservableDictionary<TKey,TValue>(System.Int32 capacity)Methodspublic virtual sealed System.Void Add(TKey key, TValue value)public virtual sealed System.Void Add(System.Collections.Generic.KeyValuePair`2<TKey,TValue> item)public System.Void AddRange(System.Collections.Generic.IDictionary`2<TKey,TValue> items)public virtual sealed System.Void Clear()public virtual sealed System.Boolean Contains(System.Collections.Generic.KeyValuePair`2<TKey,TValue> item)public virtual sealed System.Boolean ContainsKey(TKey key)public virtual sealed System.Void CopyTo(System.Collections.Generic.KeyValuePair`2<TKey,TValue>[] array, System.Int32 arrayIndex)public virtual sealed System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<TKey,TValue>> GetEnumerator()protected virtual System.Void OnPropertyChanged(System.String propertyName)public virtual sealed System.Boolean Remove(TKey key)public virtual sealed System.Boolean Remove(System.Collections.Generic.KeyValuePair`2<TKey,TValue> item)public virtual sealed System.Boolean TryGetValue(TKey key, TValue value)Propertiespublic virtual sealed System.Int32 System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Count { get; set; }protected System.Collections.Generic.IDictionary`2<TKey,TValue> System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Dictionary { get; set; }public virtual sealed System.Boolean System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.IsReadOnly { get; set; }public virtual sealed TValue System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Item { get; set; }public virtual sealed System.Collections.Generic.ICollection`1<TKey> System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Keys { get; set; }public virtual sealed System.Collections.Generic.ICollection`1<TValue> System.Collections.ObjectModel.ObservableDictionary<TKey,TValue>.Values { get; set; }Metadata