Properties.get

Gets a property's value as a certain type. If the property does not exist, a MissingPropertyException is thrown. 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)
    struct Properties
    const
    T
    get
    (
    T
    )
    (
    string key
    )
  3. T get(string key, T defaultValue)

Parameters

key string

The property name.

Return Value

Type: T

The value of the property.

Meta