Show / Hide Table of Contents

Class ConstantValue<T>

Denotes a constant value

Inheritance
object
ConstantValue<T>
Implements
INotifyValue<T>
INotifiable
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public sealed class ConstantValue<T> : INotifyValue<T>, INotifiable, IDisposable
Type Parameters
Name Description
T

The type of the value

Constructors

| Edit this page View Source

ConstantValue(T)

Creates a new instance

Declaration
public ConstantValue(T value)
Parameters
Type Name Description
T value

The value

Properties

| Edit this page View Source

Dependencies

Nodes that notify this node.

Declaration
public IEnumerable<INotifiable> Dependencies { get; }
Property Value
Type Description
IEnumerable<INotifiable>
| Edit this page View Source

ExecutionMetaData

Used by the execution engine during incremental execution.

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

Successors

The nodes that will get notified by this node.

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

Value

Gets the current value

Declaration
public T Value { get; }
Property Value
Type Description
T

Methods

| Edit this page View Source

Dispose()

Declaration
public void Dispose()
| Edit this page View Source

Notify(IList<INotificationResult>)

Gets called when one of the dependencies signals a notification.

Declaration
public INotificationResult Notify(IList<INotificationResult> sources)
Parameters
Type Name Description
IList<INotificationResult> sources

Contains information about what triggered this notification.

Returns
Type Description
INotificationResult

An object describing the changes that happened in this notification.

Events

| Edit this page View Source

ValueChanged

Gets fired when the value changed

Declaration
public event EventHandler<ValueChangedEventArgs> ValueChanged
Event Type
Type Description
EventHandler<ValueChangedEventArgs>

Implements

INotifyValue<T>
INotifiable
IDisposable

Extension Methods

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