Struct ConfigOption
- Namespace
- AetherUtils.Core.Structs
- Assembly
- AetherUtils.Core.dll
Represents a single configuration option and it's value. This option can contain a single-dimensional list indexer.
public readonly struct ConfigOption
- Inherited Members
Remarks
var option = new ConfigOption("listOption[0]", 2); would allow you to change the value of the listOption at index 0 to the value 2.
Constructors
ConfigOption(string, object?)
Create a new configuration option with the specified
public ConfigOption(string optionName, object? value)
Parameters
Properties
ArrayIndexExists
Get a value indicating if this configuration option contains an array indexer.
public bool ArrayIndexExists { get; }
Property Value
ArrayIndexer
The array index for the option, if Name references a list.
public int ArrayIndexer { get; }
Property Value
Name
The name of the configuration option.
public string Name { get; }
Property Value
Value
The value for the configuration option specified by Name.
public object? Value { get; }