VariantConfig.get

Retrieves the value T associated with key where T is the designated type to be converted to.

  1. Variant get(string key, T defaultValue)
  2. Variant get(string group, string key, T defaultValue)
    struct VariantConfig
    @trusted
    Variant
    get
    (
    T
    )
    (
    const string group
    ,
    const string key
    ,)

Parameters

group string

Name of the group to retrieve ie portion groupName of config file/string.

key string

Name of the key to get.

defaultValue T

Allow the assignment of a default value if key does not exist.

Return Value

Type: Variant

The value of value of the key/value pair.

Meta