Class ObservingFunc<T1, TResult>
Represents an observable expression with 1 input parameters
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public class ObservingFunc<T1, TResult>
Type Parameters
Name | Description |
---|---|
T1 | The type of the input parameter 1 |
TResult | The result type of the observing func |
Constructors
| Edit this page View SourceObservingFunc(Expression<Func<T1, TResult>>)
Creates a new observable expression for the given expression
Declaration
public ObservingFunc(Expression<Func<T1, TResult>> expression)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T1, TResult>> | expression | The expression that is to be observed |
Properties
| Edit this page View SourceExpression
Represents the DDG template of this function
Declaration
public INotifiable Expression { get; }
Property Value
Type | Description |
---|---|
INotifiable |
IsReversable
Gets a value indicating whether this function can be reversed
Declaration
public virtual bool IsReversable { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceEvaluate(T1)
Invokes the expression
Declaration
[ObservableProxy(typeof(ObservingFunc<,>), "Observe", false)]
public TResult Evaluate(T1 in1)
Parameters
Type | Name | Description |
---|---|---|
T1 | in1 | The input parameter 1 |
Returns
Type | Description |
---|---|
TResult | An observable value that keeps track of any changes |
FromExpression(Expression<Func<T1, TResult>>)
Creates a new observable expression from the given expression
Declaration
public static ObservingFunc<T1, TResult> FromExpression(Expression<Func<T1, TResult>> expression)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T1, TResult>> | expression | The expression that is to be observed |
Returns
Type | Description |
---|---|
ObservingFunc<T1, TResult> | An observable function |
InvokeReversable(INotifyValue<T1>)
Invokes the expression
Declaration
public virtual 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 |
InvokeReversable(T1)
Invokes the expression
Declaration
public virtual 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 |
Observe(INotifyValue<T1>)
Invokes the expression
Declaration
public INotifyValue<TResult> Observe(INotifyValue<T1> in1)
Parameters
Type | Name | Description |
---|---|---|
INotifyValue<T1> | in1 | The input parameter 1 |
Returns
Type | Description |
---|---|
INotifyValue<TResult> | An observable value that keeps track of any changes |
Observe(T1)
Invokes the expression
Declaration
public INotifyValue<TResult> Observe(T1 in1)
Parameters
Type | Name | Description |
---|---|---|
T1 | in1 | The input parameter 1 |
Returns
Type | Description |
---|---|
INotifyValue<TResult> | An observable value that keeps track of any changes |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Operators
| Edit this page View Sourceimplicit operator ObservingFunc<T1, TResult>(Expression<Func<T1, TResult>>)
Creates a new observable expression
Declaration
public static implicit operator ObservingFunc<T1, TResult>(Expression<Func<T1, TResult>> expression)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T1, TResult>> | expression | The expression that is to be observed |
Returns
Type | Description |
---|---|
ObservingFunc<T1, TResult> | An observable function |