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