ValueArray

Description

sealed class Tinman.Core.Config.ValueArray

Derived from

VectorConstBase<ConfigValue> abstract
IVersioned

Represents an array of ConfigValues.

Public / Constructors

Value​Array


public constructor ValueArray → (1)

type in : ConfigType

The element type.

Creates a new instance of ValueArray.

Public / Methods

Add


public method Add → ()

returns → ConfigValue

The added value.

Adds the given element to this collection.

Clear


public method Clear → ()

Removes all elements from this collection.

Insert​At


public method InsertAt → (1)

index in : int32

[0..IBagConst.Count]
List index where to insert the element.

returns → ConfigValue

The inserted value.

Inserts the given element into the list.

Remove​At


public method RemoveAt → (1)

index in : int32

[0..IBagConst.Count-1]
The list index.

Removes the element at the given list index.

Public / Attributes

Bool


public attribute Bool → (get,set)

value : bool [ ]

The config value.

Accesses the config value, assuming a conversion to ConfigType.Bool exists.

ConfigException

If no conversion exists.

Num


public attribute Num → (get,set)

value : float64 [ ]

The config value.

Accesses the config value, assuming a conversion to ConfigType.Num exists.

ConfigException

If no conversion exists.

Path


public attribute Path → (get,set)

value : Path [ ]

The config value.

Accesses the config value, assuming a conversion to ConfigType.Path exists.

ConfigException

If no conversion exists.

Str


public attribute Str → (get,set)

value : string [ ]

The config value.

Accesses the config value, assuming a conversion to ConfigType.Str exists.

ConfigException

If no conversion exists.