The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

ObservableCacheAlias.

SelectTree<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, TKey>) Method

Summary

Transforms the object to a fully recursive tree, create a hierarchy based on the pivot function.
Namespace
DynamicData.Alias
Containing Type
ObservableCacheAlias

Syntax

public static IObservable<IChangeSet<Node<TObject, TKey>, TKey>> SelectTree<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, TKey> pivotOn) 
    where TObject : class where TKey : notnull

Type Parameters

Name Description
TObject The type of the object.
TKey The type of the key.

Parameters

Name Type Description
source IObservable<IChangeSet<TObject, TKey>> The source.
pivotOn Func<TObject, TKey> The pivot on.

Return Value

Type Description
IObservable<IChangeSet<Node<TObject, TKey>, TKey>> An observable which emits the change set.