Table of Contents

Class LabelledObject<T>

Namespace
Garyon.Objects
Assembly
Garyon.dll

Represents a object that is labelled with a name.

public abstract class LabelledObject<T>

Type Parameters

T

The type of the object value.

Inheritance
LabelledObject<T>
Derived
Inherited Members
Extension Methods

Constructors

LabelledObject(T?)

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

protected LabelledObject(T? value = default)

Parameters

value T

The value of the object.

Properties

Label

The label of the object.

public abstract string Label { get; }

Property Value

string

ObjectValue

The object value.

public T? ObjectValue { get; set; }

Property Value

T

Methods

ToString()

Returns the string representation of this labelled object including its label.

public override sealed string ToString()

Returns

string

The string representation of the labelled object in the form $"{Label}: {ObjectValue}".