Class VariableDataSource<TInstruction>
Represents a data source that refers to a variable value assigned by a node in a data flow graph.
public class VariableDataSource<TInstruction> : DataSource<TInstruction> where TInstruction : notnull
Type Parameters
TInstructionThe type of data stored in each data flow node.
- Inheritance
-
DataSource<TInstruction>VariableDataSource<TInstruction>
- Inherited Members
Constructors
VariableDataSource(DataFlowNode<TInstruction>, IVariable)
Creates a new variable data source referencing a variable value assigned by the provided node.
public VariableDataSource(DataFlowNode<TInstruction> node, IVariable variable)
Parameters
nodeDataFlowNode<TInstruction>The node assigning the value.
variableIVariableThe variable that was assigned a value.
Properties
Type
Gets the type of data dependency that this data source encodes.
public override DataDependencyType Type { get; }
Property Value
Variable
Gets the variable that was referenced by Node.
public IVariable Variable { get; }
Property Value
Methods
ToString()
public override string ToString()