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