Skip to content

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 (opens in a new tab), IEnumerable (opens in a new tab), IEnumerable (opens in a new tab), IReactiveSource, INotifyCollectionChanged (opens in a new tab), IDisposable (opens in a new tab)

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

NameSummary
CountGets the number of elements contained in the list.
IsReadOnlyGets a value indicating whether the list is read-only.

Methods

NameSummary
GetEnumeratorReturns an enumerator that iterates through the list.
AddIndexAdds an index to the collection using the specified name and key selector.
AddRangeAdds the elements of the specified collection to the end of the list.
GetItemsBySecondaryIndexRetrieves all entities of type T that match the specified key in the given index.
RemoveRangeRemoves all elements in the specified collection from the current collection.
RemoveManyRemoves all elements that match the specified predicate from the collection.
EditPerforms a batch edit operation on the collection, ensuring only a single change notification is emitted.
ReplaceAllReplaces all existing items with new items atomically, emitting a single change notification.