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