Show / Hide Table of Contents

Class ObservingFunc<T1, TResult>

Represents an observable expression with 1 input parameters

Inheritance
object
ObservingFunc<T1, TResult>
ReversableObservingFunc<T1, TResult>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 Source

ObservingFunc(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 Source

Expression

Represents the DDG template of this function

Declaration
public INotifiable Expression { get; }
Property Value
Type Description
INotifiable
| Edit this page View Source

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 Source

Evaluate(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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

| Edit this page View Source

implicit 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

Extension Methods

ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX