Class ReversableObservingFunc<T1, T2, TResult>
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.dll
Represents an observable expression with 2 input parameters and a custom update handler
public class ReversableObservingFunc<T1, T2, TResult> : ObservingFunc<T1, T2, TResult>
Type Parameters
T1
The type of the input parameter 1
T2
The type of the input parameter 2
TResult
The type of the result
- Inheritance
-
ObservingFunc<T1, T2, TResult>ReversableObservingFunc<T1, T2, TResult>
- Inherited Members
- Extension Methods
Constructors
ReversableObservingFunc(Expression<Func<T1, T2, TResult>>, Action<T1, T2, TResult>)
Creates a new observable expression for the given expression
public ReversableObservingFunc(Expression<Func<T1, T2, TResult>> expression, Action<T1, T2, TResult> updateHandler)
Parameters
expression
Expression<Func<T1, T2, TResult>>The expression that is to be observed
updateHandler
Action<T1, T2, 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, T2, TResult> UpdateHandler { get; }
Property Value
- Action<T1, T2, TResult>
Methods
InvokeReversable(INotifyValue<T1>, INotifyValue<T2>)
Invokes the expression
public override INotifyReversableValue<TResult> InvokeReversable(INotifyValue<T1> in1, INotifyValue<T2> in2)
Parameters
in1
INotifyValue<T1>The input parameter 1
in2
INotifyValue<T2>The input parameter 2
Returns
- INotifyReversableValue<TResult>
An observable value that keeps track of any changes
InvokeReversable(T1, T2)
Invokes the expression
public override INotifyReversableValue<TResult> InvokeReversable(T1 in1, T2 in2)
Parameters
in1
T1The input parameter 1
in2
T2The input parameter 2
Returns
- INotifyReversableValue<TResult>
An observable value that keeps track of any changes