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

ObservableFuncMixins.

ToObservable<TSource, TResult>(Expression<Func<TSource, TResult?>>, TSource?, bool, bool) Method

Summary

Converts to observable.
Namespace
ReactiveUI
Containing Type
ObservableFuncMixins

Syntax

public static IObservable<TResult?> ToObservable<TSource, TResult>(this Expression<Func<TSource, TResult?>> expression, TSource? source, bool beforeChange = false, bool skipInitial = false)

Type Parameters

Name Description
TSource The type of the view model.
TResult The type of the result.

Parameters

Name Type Description
expression Expression<Func<TSource, TResult?>> The expression.
source TSource? The view model.
beforeChange bool if set to true [before change].
skipInitial bool if set to true [skip initial].

Return Value

Type Description
IObservable<TResult?> An observable Result.