Class ReversableObservingFunc<T1, TResult>
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.dll
Represents an observable expression with 1 input parameters and a custom update handler
public class ReversableObservingFunc<T1, TResult> : ObservingFunc<T1, TResult>
Type Parameters
T1
The type of the input parameter 1
TResult
The type of the result
- Inheritance
-
ObservingFunc<T1, TResult>ReversableObservingFunc<T1, TResult>
- Inherited Members
- Extension Methods
Constructors
ReversableObservingFunc(Expression<Func<T1, TResult>>, Action<T1, TResult>)
Creates a new observable expression for the given expression
public ReversableObservingFunc(Expression<Func<T1, TResult>> expression, Action<T1, TResult> updateHandler)
Parameters
expression
Expression<Func<T1, TResult>>The expression that is to be observed
updateHandler
Action<T1, TResult>A function that is executed when the result is changed
Properties
IsReversable
Gets a value indicating whether this function can be reversed
public override bool IsReversable { get; }
Property Value
UpdateHandler
The method that handles value updates for this func
public Action<T1, TResult> UpdateHandler { get; }
Property Value
- Action<T1, TResult>
Methods
InvokeReversable(INotifyValue<T1>)
Invokes the expression
public override INotifyReversableValue<TResult> InvokeReversable(INotifyValue<T1> in1)
Parameters
in1
INotifyValue<T1>The input parameter 1
Returns
- INotifyReversableValue<TResult>
An observable value that keeps track of any changes
InvokeReversable(T1)
Invokes the expression
public override INotifyReversableValue<TResult> InvokeReversable(T1 in1)
Parameters
in1
T1The input parameter 1
Returns
- INotifyReversableValue<TResult>
An observable value that keeps track of any changes