Class LabelledObject<T>
Represents a object that is labelled with a name.
public abstract class LabelledObject<T>
Type Parameters
TThe 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
valueTThe value of the object.
Properties
Label
The label of the object.
public abstract string Label { get; }
Property Value
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}".