Skip to content

DiGi.Unit.IO.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Unit.IO.Classes Namespace

Classes

UnitColumn Class

Represents a column in a table that is associated with a specific unit of measurement, extending the basic extended column functionality.

public class UnitColumn : DiGi.Core.IO.Table.Classes.ExtendedColumn

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.IO.Table.Classes.ColumnDiGi.Core.IO.Table.Classes.ExtendedColumn → UnitColumn

Constructors

UnitColumn(UnitColumn) Constructor

Initializes a new instance of the UnitColumn class by cloning an existing UnitColumn instance.

public UnitColumn(DiGi.Unit.IO.Classes.UnitColumn unitColumn);

Parameters

unitColumn UnitColumn

The source column to clone.

UnitColumn(string, Unit, string, string) Constructor

Initializes a new instance of the UnitColumn class with specified name, unit, category, and description, defaulting the type to double.

public UnitColumn(string? name, DiGi.Unit.Classes.Unit? unit, string? category, string? description);

Parameters

name System.String

The name of the column.

unit DiGi.Unit.Classes.Unit

The unit associated with the column.

category System.String

The category metadata for the column.

description System.String

The description metadata for the column.

UnitColumn(string, Unit, string, string, UnitDataType) Constructor

Initializes a new instance of the UnitColumn class with specified name, unit, category, description, and specific unit data type.

public UnitColumn(string? name, DiGi.Unit.Classes.Unit? unit, string? category, string? description, DiGi.Unit.Enums.UnitDataType unitDataType);

Parameters

name System.String

The name of the column.

unit DiGi.Unit.Classes.Unit

The unit associated with the column.

category System.String

The category metadata for the column.

description System.String

The description metadata for the column.

unitDataType DiGi.Unit.Enums.UnitDataType

The data type of the unit column.

UnitColumn(JsonObject) Constructor

Initializes a new instance of the UnitColumn class from a JSON object.

public UnitColumn(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the column data.

Properties

UnitColumn.Unit Property

Gets or sets the unit associated with this column.

public DiGi.Unit.Classes.Unit? Unit { get; set; }

Property Value

DiGi.Unit.Classes.Unit

UnitColumn.UnitDataType Property

Gets the unit data type based on the underlying type of the column.

public DiGi.Unit.Enums.UnitDataType UnitDataType { get; }

Property Value

DiGi.Unit.Enums.UnitDataType