Show / Hide Table of Contents

Class ReversableObservingFunc<T1, TResult>

Represents an observable expression with 1 input parameters and a custom update handler

Inheritance
object
ObservingFunc<T1, TResult>
ReversableObservingFunc<T1, TResult>
Inherited Members
ObservingFunc<T1, TResult>.Evaluate(T1)
ObservingFunc<T1, TResult>.Observe(T1)
ObservingFunc<T1, TResult>.Observe(INotifyValue<T1>)
ObservingFunc<T1, TResult>.InvokeReversable(T1)
ObservingFunc<T1, TResult>.InvokeReversable(INotifyValue<T1>)
ObservingFunc<T1, TResult>.FromExpression(Expression<Func<T1, TResult>>)
ObservingFunc<T1, TResult>.IsReversable
ObservingFunc<T1, TResult>.ToString()
ObservingFunc<T1, TResult>.Expression
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public class ReversableObservingFunc<T1, TResult> : ObservingFunc<T1, TResult>
Type Parameters
Name Description
T1

The type of the input parameter 1

TResult

The type of the result

Constructors

| Edit this page View Source

ReversableObservingFunc(Expression<Func<T1, TResult>>, Action<T1, TResult>)

Creates a new observable expression for the given expression

Declaration
public ReversableObservingFunc(Expression<Func<T1, TResult>> expression, Action<T1, TResult> updateHandler)
Parameters
Type Name Description
Expression<Func<T1, TResult>> expression

The expression that is to be observed

Action<T1, TResult> updateHandler

A function that is executed when the result is changed

Properties

| Edit this page View Source

IsReversable

Gets a value indicating whether this function can be reversed

Declaration
public override bool IsReversable { get; }
Property Value
Type Description
bool
Overrides
ObservingFunc<T1, TResult>.IsReversable
| Edit this page View Source

UpdateHandler

The method that handles value updates for this func

Declaration
public Action<T1, TResult> UpdateHandler { get; }
Property Value
Type Description
Action<T1, TResult>

Methods

| Edit this page View Source

InvokeReversable(INotifyValue<T1>)

Invokes the expression

Declaration
public override INotifyReversableValue<TResult> InvokeReversable(INotifyValue<T1> in1)
Parameters
Type Name Description
INotifyValue<T1> in1

The input parameter 1

Returns
Type Description
INotifyReversableValue<TResult>

An observable value that keeps track of any changes

Overrides
ObservingFunc<T1, TResult>.InvokeReversable(INotifyValue<T1>)
| Edit this page View Source

InvokeReversable(T1)

Invokes the expression

Declaration
public override INotifyReversableValue<TResult> InvokeReversable(T1 in1)
Parameters
Type Name Description
T1 in1

The input parameter 1

Returns
Type Description
INotifyReversableValue<TResult>

An observable value that keeps track of any changes

Overrides
ObservingFunc<T1, TResult>.InvokeReversable(T1)

Extension Methods

ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX