Skip to content
Roland Pheasant edited this page Apr 5, 2016 · 5 revisions

Dynamic data is reactive collections.

It provides an observable list and an observable cache which have a large number of operators. These operators allow the fluent composition of complex functionality which takes the pain out of the asynchronous management of collections. This is achieved because when a source collection changes the operators self-maintain.

To illustrate it's usage, the following example takes an observable list, calls Connect() which makes it into an observable, filters on pensioners, sorts them and creates a new self maintaining observable list.

var people = new SourceList<People>();
var oldPeople = people .Connect()
    .Filter(person => person.Age > 65)
    .Sort(SortExpressionComparer<Person>.Ascending(p => p.Age).ThenByAscending(p=>p.Name))
    .AsObservableList();

At any time people can be amended and the rest takes care of itself.

Clone this wiki locally