Interface IObservableList<T>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
A readonly observable list, providing observable methods as well as data access methods.
public interface IObservableList<T> : IDisposable where T : notnull
Type Parameters
T
The type of item.
- Inherited Members
- Extension Methods
Properties
Count
Gets the count.
int Count { get; }
Property Value
CountChanged
Gets observe the count changes, starting with the initial items count.
IObservable<int> CountChanged { get; }
Property Value
Items
Gets items enumerable.
IReadOnlyList<T> Items { get; }
Property Value
Methods
Connect(Func<T, bool>?)
Connect to the observable list and observe any changes starting with the list's initial items.
IObservable<IChangeSet<T>> Connect(Func<T, bool>? predicate = null)
Parameters
Returns
- IObservable<IChangeSet<T>>
An observable which emits the change set.
Preview(Func<T, bool>?)
Connect to the observable list and observe any changes before they are applied to the list. Unlike Connect(), the returned observable is not prepended with the lists initial items.
IObservable<IChangeSet<T>> Preview(Func<T, bool>? predicate = null)
Parameters
Returns
- IObservable<IChangeSet<T>>
An observable which emits the change set.