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
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¶
| Name | Summary |
|---|---|
| Count | Gets the count of items in the collection. |
| IsReadOnly | Gets a value indicating whether the collection is read-only. |
| IsDisposed | Gets a value indicating whether the source has been disposed. |
| Version | Gets the current version number of the collection, which is incremented on each modification. |
| Stream | Gets an observable sequence that emits cache change notifications as they occur. |
Methods¶
| Name | Summary |
|---|---|
| GetEnumerator | Returns an enumerator that iterates through the source. |
| ToArray | Creates a snapshot of current items as an array. |