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
TThe type of the value
- Inheritance
 - 
      
      ConstantValue<T>
 
- Implements
 - 
      INotifyValue<T>
 
- Inherited Members
 
- Extension Methods
 
Constructors
ConstantValue(T)
Creates a new instance
public ConstantValue(T value)
  Parameters
valueTThe value
Properties
Dependencies
Nodes that notify this node.
public IEnumerable<INotifiable> Dependencies { get; }
  Property Value
ExecutionMetaData
Used by the execution engine during incremental execution.
public ExecutionMetaData ExecutionMetaData { get; }
  Property Value
Successors
The nodes that will get notified by this node.
public ISuccessorList Successors { get; }
  Property Value
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
sourcesIList<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