Table of Contents

Class ChainNode<T>

Namespace
Gve.Text
Assembly
Gve.Text.dll

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

data T

The data.

label string

The label.

id int

The identifier.

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

int

Label

Gets or sets the node label.

public string Label { get; set; }

Property Value

string

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

string

Methods

ToString()

Converts to string.

public override string ToString()

Returns

string

A string that represents this instance.