Class ChainNode<T>
A node in a Chain<T> data structure.
public class ChainNode<T>
Type Parameters
T
The node data type.
- Inheritance
-
ChainNode<T>
- Inherited Members
Constructors
ChainNode()
Initializes a new instance of the ChainNode<T> class.
public ChainNode()
ChainNode(T?, string?, int)
Initializes a new instance of the ChainNode<T> class.
public ChainNode(T? data, string? label = null, int id = 0)
Parameters
Properties
Data
Gets or sets the data attached to this node.
public T? Data { get; set; }
Property Value
- T
Id
Gets or sets the autonumber assigned to this node in the context of its chain.
public int Id { get; set; }
Property Value
Label
Gets or sets the node label.
public string Label { get; set; }
Property Value
SourceTag
Gets or sets the source tag for this node, i.e. the tag of the version which first added it to the chain.
public string SourceTag { get; set; }
Property Value
Methods
ToString()
Converts to string.
public override string ToString()