Click or drag to resize

ObservableIndexerTKey, TValue Class

A Dictionary like implementation that populates it's content on demand, i.e. calling indexer[key] will never return null.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelReadOnlyCollectionKeyValuePairTKey, TValue
    TomsToolbox.ObservableCollectionsReadOnlyObservableCollectionAdapterKeyValuePairTKey, TValue, ObservableCollectionKeyValuePairTKey, TValue
      TomsToolbox.ObservableCollectionsObservableIndexerTKey, TValue

Namespace: TomsToolbox.ObservableCollections
Assembly: TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public sealed class ObservableIndexer<TKey, TValue> : ReadOnlyObservableCollectionAdapter<KeyValuePair<TKey, TValue>, ObservableCollection<KeyValuePair<TKey, TValue>>>

Type Parameters

TKey
The type of the key.
TValue
The type of the value.

The ObservableIndexerTKey, TValue type exposes the following members.

Constructors
 NameDescription
Public methodObservableIndexerTKey, TValue(FuncTKey, TValue) Initializes a new instance of the ObservableIndexerTKey, TValue class.
Public methodObservableIndexerTKey, TValue(FuncTKey, TValue, IEqualityComparerTKey) Initializes a new instance of the ObservableIndexerTKey, TValue class.
Top
Properties
 NameDescription
Public propertyComparer Gets the IEqualityComparerT that is used to determine equality of keys for the dictionary.
Public propertyItem Gets the value associated with the specified key.
Top
Methods
 NameDescription
Public methodClear Removes all keys and values from the DictionaryTKey, TValue.
Public methodRemove Removes the value with the specified key from the DictionaryTKey, TValue.
Top
Events
 NameDescription
Public eventCollectionChanged Occurs when the collection changes.
(Inherited from ReadOnlyObservableCollectionAdapterT, TList)
Public eventPropertyChanged Occurs when a property value changes.
(Inherited from ReadOnlyObservableCollectionAdapterT, TList)
Top
Extension Methods
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also