Properties.get

Gets a property's value as a certain type. If the property does not exist, a default value is returned. If the conversion could not be performed, a std.conv.ConvException is thrown.

  1. string get(string key, string defaultValue)
  2. T get(string key)
  3. T get(string key, T defaultValue)
    struct Properties
    const
    T
    get
    (
    T
    )
    (
    string key
    ,)

Parameters

key string

The property name.

defaultValue T

The default value to use, if no property exists.

Return Value

Type: T

The value of the property, or the default value if the property doesn't exist.

Meta