Table of Contents

Class ConstantValue<T>

Namespace
NMF.Expressions
Assembly
NMF.Expressions.dll

Denotes a constant value

public sealed class ConstantValue<T> : INotifyValue<T>, INotifiable, IDisposable

Type Parameters

T

The type of the value

Inheritance
ConstantValue<T>
Implements
Inherited Members
Extension Methods

Constructors

ConstantValue(T)

Creates a new instance

public ConstantValue(T value)

Parameters

value T

The value

Properties

Dependencies

Nodes that notify this node.

public IEnumerable<INotifiable> Dependencies { get; }

Property Value

IEnumerable<INotifiable>

ExecutionMetaData

Used by the execution engine during incremental execution.

public ExecutionMetaData ExecutionMetaData { get; }

Property Value

ExecutionMetaData

Successors

The nodes that will get notified by this node.

public ISuccessorList Successors { get; }

Property Value

ISuccessorList

Value

Gets the current value

public T Value { get; }

Property Value

T

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Notify(IList<INotificationResult>)

Gets called when one of the dependencies signals a notification.

public INotificationResult Notify(IList<INotificationResult> sources)

Parameters

sources IList<INotificationResult>

Contains information about what triggered this notification.

Returns

INotificationResult

An object describing the changes that happened in this notification.

Events

ValueChanged

Gets fired when the value changed

public event EventHandler<ValueChangedEventArgs> ValueChanged

Event Type

EventHandler<ValueChangedEventArgs>