IQuaternaryList interface¶
Defined in
Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Collections.IQuaternaryList<T> Modifiers: public abstract
Summary¶
Represents a list of elements that supports secondary named indexes for efficient querying in addition to standard
list operations.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class IQuaternaryList~T~
class ICollection~T~ {
<>
}
ICollection~T~ <|.. IQuaternaryList~T~
class IEnumerable~T~ {
<>
}
IEnumerable~T~ <|.. IQuaternaryList~T~
class IEnumerable {
<>
}
IEnumerable <|.. IQuaternaryList~T~
class IReactiveSource~T~ {
<>
}
IReactiveSource~T~ <|.. IQuaternaryList~T~
class INotifyCollectionChanged {
<>
}
INotifyCollectionChanged <|.. IQuaternaryList~T~
class IDisposable {
<>
}
IDisposable <|.. IQuaternaryList~T~
Implements: ICollection
Remarks¶
The IQuaternaryList of T interface extends IList of T by allowing the creation of named indexes on element properties. These indexes enable fast retrieval of elements based on indexed keys. Indexes must be explicitly added before they can be used for querying. This interface is suitable for scenarios where frequent lookups by specific keys are required in addition to sequential access.
Properties¶
| Name | Summary |
|---|---|
| Count | Gets the number of elements contained in the list. |
| IsReadOnly | Gets a value indicating whether the list is read-only. |
Methods¶
| Name | Summary |
|---|---|
| GetEnumerator | Returns an enumerator that iterates through the list. |
| AddIndex | Adds an index to the collection using the specified name and key selector. |
| AddRange | Adds the elements of the specified collection to the end of the list. |
| GetItemsBySecondaryIndex | Retrieves all entities of type T that match the specified key in the given index. |
| RemoveRange | Removes all elements in the specified collection from the current collection. |
| RemoveMany | Removes all elements that match the specified predicate from the collection. |
| Edit | Performs a batch edit operation on the collection, ensuring only a single change notification is emitted. |
| ReplaceAll | Replaces all existing items with new items atomically, emitting a single change notification. |