Class IncrementalFunc<T1, TResult>
Represents a function class which tracks any calls
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.Utilities.dll
Syntax
public class IncrementalFunc<T1, TResult>
Type Parameters
Name | Description |
---|---|
T1 | The type of argument 1 |
TResult | The result type |
Constructors
| Edit this page View SourceIncrementalFunc(ObservingFunc<T1, TResult>)
Create an incremental func for the given expression
Declaration
public IncrementalFunc(ObservingFunc<T1, TResult> func)
Parameters
Type | Name | Description |
---|---|---|
ObservingFunc<T1, TResult> | func | The expression that should be observed |
IncrementalFunc(Expression<Func<T1, TResult>>)
Create an incremental func for the given expression
Declaration
public IncrementalFunc(Expression<Func<T1, TResult>> func)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T1, TResult>> | func | The expression that should be observed |
Properties
| Edit this page View Sourcethis[T1]
Gets the function value for the given arguments
Declaration
public TResult this[T1 arg1] { get; }
Parameters
Type | Name | Description |
---|---|---|
T1 | arg1 | Input argument 1 |
Property Value
Type | Description |
---|---|
TResult | The current function valur for the provided argument |
Methods
| Edit this page View SourceGetNotifyValue(T1)
Gets the changable value for the given arguments
Declaration
public INotifyValue<TResult> GetNotifyValue(T1 arg1)
Parameters
Type | Name | Description |
---|---|---|
T1 | arg1 | Argument 1 |
Returns
Type | Description |
---|---|
INotifyValue<TResult> | A changable function value |