Skip to content

IReactiveSource interface

Defined in

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

Summary

Base interface for all reactive collections providing change observation.

Applies to

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

Class hierarchy
classDiagram
class IReactiveSource~T~
class IEnumerable~T~ {
    <>
}
IEnumerable~T~ <|.. IReactiveSource~T~
class IEnumerable {
    <>
}
IEnumerable <|.. IReactiveSource~T~
class INotifyCollectionChanged {
    <>
}
INotifyCollectionChanged <|.. IReactiveSource~T~
class IDisposable {
    <>
}
IDisposable <|.. IReactiveSource~T~

Implements: IEnumerable (opens in a new tab), IEnumerable (opens in a new tab), INotifyCollectionChanged (opens in a new tab), IDisposable (opens in a new tab)

Remarks

        This interface provides a unified API for reactive collections: a count, a version, and a stream of change notifications.
        All implementations should support change tracking via IObservable streams.

Properties

NameSummary
CountGets the count of items in the collection.
IsReadOnlyGets a value indicating whether the collection is read-only.
IsDisposedGets a value indicating whether the source has been disposed.
VersionGets the current version number of the collection, which is incremented on each modification.
StreamGets an observable sequence that emits cache change notifications as they occur.

Methods

NameSummary
GetEnumeratorReturns an enumerator that iterates through the source.
ToArrayCreates a snapshot of current items as an array.