Class ObservingFunc<T1, TResult>
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.dll
Represents an observable expression with 1 input parameters
public class ObservingFunc<T1, TResult>
Type Parameters
T1
The type of the input parameter 1
TResult
The result type of the observing func
- Inheritance
-
ObservingFunc<T1, TResult>
- Derived
- Inherited Members
- Extension Methods
Constructors
ObservingFunc(Expression<Func<T1, TResult>>)
Creates a new observable expression for the given expression
public ObservingFunc(Expression<Func<T1, TResult>> expression)
Parameters
expression
Expression<Func<T1, TResult>>The expression that is to be observed
Properties
Expression
Represents the DDG template of this function
public INotifiable Expression { get; }
Property Value
IsReversable
Gets a value indicating whether this function can be reversed
public virtual bool IsReversable { get; }
Property Value
Methods
Evaluate(T1)
Invokes the expression
[ObservableProxy(typeof(ObservingFunc<,>), "Observe", false)]
public TResult Evaluate(T1 in1)
Parameters
in1
T1The input parameter 1
Returns
- TResult
An observable value that keeps track of any changes
FromExpression(Expression<Func<T1, TResult>>)
Creates a new observable expression from the given expression
public static ObservingFunc<T1, TResult> FromExpression(Expression<Func<T1, TResult>> expression)
Parameters
expression
Expression<Func<T1, TResult>>The expression that is to be observed
Returns
- ObservingFunc<T1, TResult>
An observable function
InvokeReversable(INotifyValue<T1>)
Invokes the expression
public virtual INotifyReversableValue<TResult> InvokeReversable(INotifyValue<T1> in1)
Parameters
in1
INotifyValue<T1>The input parameter 1
Returns
- INotifyReversableValue<TResult>
An observable value that keeps track of any changes
InvokeReversable(T1)
Invokes the expression
public virtual INotifyReversableValue<TResult> InvokeReversable(T1 in1)
Parameters
in1
T1The input parameter 1
Returns
- INotifyReversableValue<TResult>
An observable value that keeps track of any changes
Observe(INotifyValue<T1>)
Invokes the expression
public INotifyValue<TResult> Observe(INotifyValue<T1> in1)
Parameters
in1
INotifyValue<T1>The input parameter 1
Returns
- INotifyValue<TResult>
An observable value that keeps track of any changes
Observe(T1)
Invokes the expression
public INotifyValue<TResult> Observe(T1 in1)
Parameters
in1
T1The input parameter 1
Returns
- INotifyValue<TResult>
An observable value that keeps track of any changes
ToString()
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public override string ToString()
Returns
Operators
implicit operator ObservingFunc<T1, TResult>(Expression<Func<T1, TResult>>)
Creates a new observable expression
public static implicit operator ObservingFunc<T1, TResult>(Expression<Func<T1, TResult>> expression)
Parameters
expression
Expression<Func<T1, TResult>>The expression that is to be observed
Returns
- ObservingFunc<T1, TResult>
An observable function