IQuaternaryDictionary interface¶
Defined in
Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Collections.IQuaternaryDictionary<T1, T2> Modifiers: public abstract
Summary¶
Represents a dictionary that supports standard key-value storage as well as additional value-based indexing and
bulk operations.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class IQuaternaryDictionary~T1,T2~
class IDictionary~TKey, TValue~ {
<>
}
IDictionary~TKey, TValue~ <|.. IQuaternaryDictionary~T1,T2~
class ICollection~KeyValuePair~TKey, TValue~~ {
<>
}
ICollection~KeyValuePair~TKey, TValue~~ <|.. IQuaternaryDictionary~T1,T2~
class IEnumerable~KeyValuePair~TKey, TValue~~ {
<>
}
IEnumerable~KeyValuePair~TKey, TValue~~ <|.. IQuaternaryDictionary~T1,T2~
class IEnumerable {
<>
}
IEnumerable <|.. IQuaternaryDictionary~T1,T2~
class IReactiveSource~KeyValuePair~TKey, TValue~~ {
<>
}
IReactiveSource~KeyValuePair~TKey, TValue~~ <|.. IQuaternaryDictionary~T1,T2~
class INotifyCollectionChanged {
<>
}
INotifyCollectionChanged <|.. IQuaternaryDictionary~T1,T2~
class IDisposable {
<>
}
IDisposable <|.. IQuaternaryDictionary~T1,T2~
Implements: IDictionary
Remarks¶
In addition to the standard IDictionary functionality, IQuaternaryDictionary provides methods for adding or updating entries, adding multiple entries at once, and creating named indexes on value properties for efficient lookups. This interface is intended for scenarios where advanced indexing and bulk operations are required beyond those provided by typical dictionary implementations.
Properties¶
| Name | Summary |
|---|---|
| Count | Gets the number of key/value pairs contained in the dictionary. |
| IsReadOnly | Gets a value indicating whether the dictionary is read-only. |
Methods¶
| Name | Summary |
|---|---|
| GetEnumerator | Returns an enumerator that iterates through the dictionary. |
| AddOrUpdate | Adds a new element with the specified key and value, or updates the value if the key already exists. |
| AddRange | Adds the elements of the specified collection to the current collection. |
| AddValueIndex | Adds a value index with the specified name, using the provided key selector to generate index keys for values. |
| TryAdd | Attempts to add the specified key and value to the collection. |
| Lookup | Looks up the value associated with the specified key. |
| RemoveKeys | Removes all entries with keys in the specified collection from the dictionary. |
| RemoveMany | Removes all entries that match the specified predicate from the dictionary. |
| Edit | Performs a batch edit operation on the dictionary, ensuring only a single change notification is emitted. |
| GetValuesBySecondaryIndex | Retrieves all values that match the specified key in the given secondary value index. |
| ValueMatchesSecondaryIndex | Determines whether the specified value matches the given key in the specified secondary index. |