Class DataSource<TInstruction>
Represents a data source in a data flow graph.
public abstract class DataSource<TInstruction> where TInstruction : notnull
Type Parameters
TInstructionThe type of instruction stored in each data flow node.
- Inheritance
-
DataSource<TInstruction>
- Derived
- Inherited Members
Constructors
DataSource(DataFlowNode<TInstruction>)
Creates a new data source.
protected DataSource(DataFlowNode<TInstruction> node)
Parameters
nodeDataFlowNode<TInstruction>The node producing the data.
Properties
Node
Gets the data flow node that produced the data.
public DataFlowNode<TInstruction> Node { get; }
Property Value
- DataFlowNode<TInstruction>
Type
Gets the type of data dependency that this data source encodes.
public abstract DataDependencyType Type { get; }
Property Value
Methods
Equals(DataSource<TInstruction>)
Determines whether the data sources are considered equal.
protected virtual bool Equals(DataSource<TInstruction> other)
Parameters
otherDataSource<TInstruction>The other data source.
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(DataSource<TInstruction>?, DataSource<TInstruction>?)
Determines whether the data sources are considered equal.
public static bool operator ==(DataSource<TInstruction>? a, DataSource<TInstruction>? b)
Parameters
aDataSource<TInstruction>The first data source.
bDataSource<TInstruction>The second data source.
Returns
- bool
trueif they are considered equal,falseotherwise.
operator !=(DataSource<TInstruction>, DataSource<TInstruction>)
Determines whether the data sources are not considered equal.
public static bool operator !=(DataSource<TInstruction> a, DataSource<TInstruction> b)
Parameters
aDataSource<TInstruction>The first data source.
bDataSource<TInstruction>The second data source.
Returns
- bool
trueif they are not considered equal,falseotherwise.