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