Skip to main content

IAvaloniaReadOnlyDictionary<TKey, TValue> Interface

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public interface IAvaloniaReadOnlyDictionary<TKey, TValue> : IReadOnlyDictionary<TKey, TValue>, 
IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IReadOnlyCollection<KeyValuePair<TKey, TValue>>,
INotifyCollectionChanged, INotifyPropertyChanged

View Source
ImplementsIEnumerable(KeyValuePair(TKey, TValue)), IReadOnlyCollection(KeyValuePair(TKey, TValue)), IReadOnlyDictionary(TKey, TValue), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

Properties

CountGets the number of elements in the collection.
(Inherited from IReadOnlyCollection(KeyValuePair(TKey, TValue)))
Item(TKey)Gets the element that has the specified key in the read-only dictionary.
(Inherited from IReadOnlyDictionary(TKey, TValue))
KeysGets an enumerable collection that contains the keys in the read-only dictionary.
(Inherited from IReadOnlyDictionary(TKey, TValue))
ValuesGets an enumerable collection that contains the values in the read-only dictionary.
(Inherited from IReadOnlyDictionary(TKey, TValue))

Methods

ContainsKey(TKey)Determines whether the read-only dictionary contains an element that has the specified key.
(Inherited from IReadOnlyDictionary(TKey, TValue))
GetEnumerator()Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable(KeyValuePair(TKey, TValue)))
TryGetValue(TKey, TValue)Gets the value that is associated with the specified key.
(Inherited from IReadOnlyDictionary(TKey, 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(Action(NotifyCollectionChangedEventArgs))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

Reference

Avalonia.Collections Namespace