ExpressionObserver.

Create<T, U>(Func<T>, Expression<Func<T, U>>, IObservable<Unit>, bool, string) Method

Summary

Creates a new instance of the ExpressionObserver class.
Namespace
Avalonia.Data.Core
Containing Type
ExpressionObserver

Syntax

public static ExpressionObserver Create<T, U>(Func<T> rootGetter, Expression<Func<T, U>> expression, IObservable<Unit> update, bool enableDataValidation = false, string description = null)

Type Parameters

Name Description
T
U

Parameters

Name Type Description
rootGetter Func<T> A function which gets the root object.
expression Expression<Func<T, U>> The expression.
update IObservable<Unit> An observable which triggers a re-read of the getter.
enableDataValidation bool Whether or not to track data validation
description string A description of the expression. If null, expression's string representation will be used.

Return Value

Type Description
ExpressionObserver