Show / Hide Table of Contents

Interface INotifyExpression

Represents an expression with additional information on the program flow

Inherited Members
INotifiable.Successors
INotifiable.Dependencies
INotifiable.Notify(IList<INotificationResult>)
INotifiable.ExecutionMetaData
IDisposable.Dispose()
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public interface INotifyExpression : INotifiable, IDisposable

Properties

| Edit this page View Source

CanBeConstant

Determines whether the expression can be replaced by a constant expression

Declaration
bool CanBeConstant { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsConstant

Determines whether the current expression is a constant

Declaration
bool IsConstant { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsParameterFree

Determines whether the current expression contains parameters

Declaration
bool IsParameterFree { get; }
Property Value
Type Description
bool
| Edit this page View Source

ValueObject

Gets the current value as object

Declaration
object ValueObject { get; }
Property Value
Type Description
object

Methods

| Edit this page View Source

ApplyParameters(IDictionary<string, object>, IDictionary<INotifiable, INotifiable>)

Applies the given set of parameters to the expression

Declaration
INotifyExpression ApplyParameters(IDictionary<string, object> parameters, IDictionary<INotifiable, INotifiable> trace)
Parameters
Type Name Description
IDictionary<string, object> parameters

A set of parameter values

IDictionary<INotifiable, INotifiable> trace

A trace to make sure parameters are only applied once for every DDG node

Returns
Type Description
INotifyExpression

A new expression with all parameter placeholders replaced with the parameter values

Remarks

In case that the current expression is parameter free, it simply returns itself

Extension Methods

DebugExtensions.ExportToDgml(INotifiable, string)
DebugExtensions.Visualize(INotifiable)
ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX