Search Results for

    Show / Hide Table of Contents

    Class ObservableDictionary<TKey, TValue>

    This implementation of System.Collections.Generic.IDictionary<TKey, TValue> implements System.Collections.Specialized.INotifyCollectionChanged to emit events when the collection is changed.

    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
    System.Collections.Specialized.INotifyCollectionChanged
    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()
    Namespace: Dangl
    Assembly: Dangl.Common.dll
    Syntax
    public class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, INotifyCollectionChanged
    Type Parameters
    Name Description
    TKey
    TValue

    Properties

    | Improve this Doc View Source

    Count

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IsReadOnly

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Item[TKey]

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public TValue this[TKey key] { get; set; }
    Parameters
    Type Name Description
    TKey key
    Property Value
    Type Description
    TValue
    | Improve this Doc View Source

    Keys

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public ICollection<TKey> Keys { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<TKey>
    | Improve this Doc View Source

    Values

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public ICollection<TValue> Values { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<TValue>

    Methods

    | Improve this Doc View Source

    Add(TKey, TValue)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public void Add(TKey key, TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    | Improve this Doc View Source

    Add(KeyValuePair<TKey, TValue>)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public void Add(KeyValuePair<TKey, TValue> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<TKey, TValue> item
    | Improve this Doc View Source

    Clear()

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Contains(KeyValuePair<TKey, TValue>)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public bool 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

    ContainsKey(TKey)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public bool ContainsKey(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CopyTo(KeyValuePair<TKey, TValue>[], Int32)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public void 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

    GetEnumerator()

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    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)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public bool Remove(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Remove(KeyValuePair<TKey, TValue>)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    Declaration
    public bool 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

    TryGetValue(TKey, out TValue)

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    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

    This event is raised when items in the underlying System.Collections.Generic.Dictionary`2 change. The elements reported in the event arguments are of type System.Collections.Generic.KeyValuePair<TKey, TValue>.

    Declaration
    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Delegates to the underlying System.Collections.Generic.Dictionary`2 and raises events.

    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
    System.Collections.Specialized.INotifyCollectionChanged
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Dangl IT GmbH