Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)

    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

    optionName string
    The name of the option.
    value object
    The value for the option.

    Properties

    ArrayIndexExists

    Get a value indicating if this configuration option contains an array indexer.
    public bool ArrayIndexExists { get; }

    Property Value

    bool

    ArrayIndexer

    The array index for the option, if Name references a list.
    public int ArrayIndexer { get; }

    Property Value

    int

    Name

    The name of the configuration option.
    public string Name { get; }

    Property Value

    string

    Value

    The value for the configuration option specified by Name.
    public object? Value { get; }

    Property Value

    object
    (c) 2024 Ethan Hann. All rights reserved.