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

EnumerableEx.

AsObservableChangeSet<TObject, TKey>(IEnumerable<TObject>, Func<TObject, TKey>, bool) Method

Summary

Converts the enumerable to an observable change set. Generates a snapshot in time based of enumerable.
Namespace
DynamicData
Containing Type
EnumerableEx

Syntax

public static IObservable<IChangeSet<TObject, TKey>> AsObservableChangeSet<TObject, TKey>(this IEnumerable<TObject> source, Func<TObject, TKey> keySelector, bool completable = false) 
    where TKey : notnull

Type Parameters

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

Parameters

Name Type Description
source IEnumerable<TObject> The source.
keySelector Func<TObject, TKey> The key selector.
completable bool Optionally emit an OnComplete.

Return Value

Type Description
IObservable<IChangeSet<TObject, TKey>> An observable change set.