Table of Contents

Class ChainLink<T>

Namespace
Gve.Text
Assembly
Gve.Text.dll

A link between two nodes in a Chain<T>.

public class ChainLink<T>

Type Parameters

T

The node data type.

Inheritance
ChainLink<T>
Inherited Members

Constructors

Initializes a new instance of the ChainLink<T> class.

public ChainLink()

Initializes a new instance of the ChainLink<T> class.

public ChainLink(string tag, ChainNode<T>? source, ChainNode<T>? target)

Parameters

tag string

The tag.

source ChainNode<T>

The source.

target ChainNode<T>

The target.

Exceptions

ArgumentNullException

tag

ArgumentException

Both source and target are null.

Properties

Gets a value indicating whether this link is a head link.

public bool IsHead { get; }

Property Value

bool

Gets a value indicating whether this link is a tail link.

public bool IsTail { get; }

Property Value

bool

Gets or sets the source node.

public ChainNode<T>? Source { get; set; }

Property Value

ChainNode<T>

Gets or sets the version tag for this link.

public string Tag { get; set; }

Property Value

string

Gets or sets the target node.

public ChainNode<T>? Target { get; set; }

Property Value

ChainNode<T>

Methods

Converts to string.

public override string ToString()

Returns

string

string