IAvaloniaReadOnlyDictionaryTKey, TValue Interface

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public interface IAvaloniaReadOnlyDictionary<TKey, TValue> : IReadOnlyDictionary<TKey, TValue>, 
	IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, 
	INotifyCollectionChanged, INotifyPropertyChanged
Implements
IEnumerableKeyValuePairTKey, TValue, IReadOnlyCollectionKeyValuePairTKey, TValue, IReadOnlyDictionaryTKey, TValue, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

TKey
TValue

Properties

CountGets the number of elements in the collection.
(Inherited from IReadOnlyCollectionKeyValuePairTKey, TValue)
ItemTKeyGets the element that has the specified key in the read-only dictionary.
(Inherited from IReadOnlyDictionaryTKey, TValue)
KeysGets an enumerable collection that contains the keys in the read-only dictionary.
(Inherited from IReadOnlyDictionaryTKey, TValue)
ValuesGets an enumerable collection that contains the values in the read-only dictionary.
(Inherited from IReadOnlyDictionaryTKey, TValue)

Methods

ContainsKey(TKey)Determines whether the read-only dictionary contains an element that has the specified key.
(Inherited from IReadOnlyDictionaryTKey, TValue)
GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from IEnumerableKeyValuePairTKey, TValue)
TryGetValue(TKey, TValue)Gets the value that is associated with the specified key.
(Inherited from IReadOnlyDictionaryTKey, TValue)

Events

CollectionChangedOccurs when the collection changes.
(Inherited from INotifyCollectionChanged)
PropertyChangedOccurs when a property value changes.
(Inherited from INotifyPropertyChanged)

Extension Methods

GetWeakCollectionChangedObservable Gets a weak observable for the CollectionChanged event.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(ActionNotifyCollectionChangedEventArgs) Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(NotifyCollectionChangedEventHandler) Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)

See Also