Skip to content

IReactiveList interface

Attributes: [DefaultMember("Item")]

Defined in

Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Collections.IReactiveList<T> Modifiers: public abstract

Summary

        Represents a reactive, observable list that notifies subscribers of changes to its items and supports batch
        operations and advanced collection manipulation.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Class hierarchy
classDiagram
class IReactiveList~T~
class IList~T~ {
    <>
}
IList~T~ <|.. IReactiveList~T~
class ICollection~T~ {
    <>
}
ICollection~T~ <|.. IReactiveList~T~
class IEnumerable~T~ {
    <>
}
IEnumerable~T~ <|.. IReactiveList~T~
class IEnumerable {
    <>
}
IEnumerable <|.. IReactiveList~T~
class IList {
    <>
}
IList <|.. IReactiveList~T~
class ICollection {
    <>
}
ICollection <|.. IReactiveList~T~
class IReadOnlyList~T~ {
    <>
}
IReadOnlyList~T~ <|.. IReactiveList~T~
class IReadOnlyCollection~T~ {
    <>
}
IReadOnlyCollection~T~ <|.. IReactiveList~T~
class IReactiveSource~T~ {
    <>
}
IReactiveSource~T~ <|.. IReactiveList~T~
class INotifyCollectionChanged {
    <>
}
INotifyCollectionChanged <|.. IReactiveList~T~
class IDisposable {
    <>
}
IDisposable <|.. IReactiveList~T~
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. IReactiveList~T~

Implements: IList (opens in a new tab), ICollection (opens in a new tab), IEnumerable (opens in a new tab), IEnumerable (opens in a new tab), IList (opens in a new tab), ICollection (opens in a new tab), IReadOnlyList (opens in a new tab), IReadOnlyCollection (opens in a new tab), IReactiveSource, INotifyCollectionChanged (opens in a new tab), IDisposable (opens in a new tab), INotifyPropertyChanged (opens in a new tab)

Remarks

IReactiveList extends standard list and collection interfaces with reactive capabilities, allowing consumers to observe additions, removals, and changes to the list in real time. It is designed for scenarios where changes to the collection need to be tracked and responded to, such as in data-binding or reactive programming contexts. Implementations are expected to be thread-safe only if explicitly documented.

Properties

NameSummary
CountGets the number of elements contained in the list.
IsReadOnlyGets a value indicating whether the list is read-only.
AddedGets the added.
ChangedGets the changed.
CurrentItemsGets the current items.
ItemsGets the items.
ItemsAddedGets the items added.
ItemsChangedGets the items changed.
ItemsRemovedGets the items removed.
RemovedGets the removed.
this[]Gets or sets the element at the specified index.

Methods

NameSummary
GetEnumeratorReturns an enumerator that iterates through the list.
AddRangeAdds the range.
ClearRemoves all items from the ICollection (opens in a new tab).
EditExecutes a batch edit operation on the list.
InsertRangeInserts the range.
MoveMoves an item from one index to another.
RemoveRemoves the specified items.
RemoveAtRemoves the IList (opens in a new tab) item at the specified index.
RemoveManyRemoves all elements that match the specified predicate from the collection.
RemoveRangeRemoves the range.
ReplaceAllReplaces all existing items with new items.
UpdateUpdates the specified item.