Table of Contents

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

int

CountChanged

Gets observe the count changes, starting with the initial items count.

IObservable<int> CountChanged { get; }

Property Value

IObservable<int>

Items

Gets items enumerable.

IReadOnlyList<T> Items { get; }

Property Value

IReadOnlyList<T>

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

predicate Func<T, bool>

The result will be filtered on the specified predicate.

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

predicate Func<T, bool>

The result will be filtered on the specified predicate.

Returns

IObservable<IChangeSet<T>>

An observable which emits the change set.