IConfigurable

Public / Methods

ToConfig


public method ToConfig → ()

returns → ConfigValue

The configuration value.

Returns the configuration value that describes this object.

All configurable objects need to implement this interface. For simple types, it is preferable to delegate to IConfigurator.ToValue.

The returned value may be of type ConfigType.Invalid, which means that this object in its current state cannot be described with the configuration API.

Before returning the resulting configuration value, ConfigValue.Cache must be called on it, passing this IConfigurable object as parameter.

ConfigException

If an unexpected error has occurred while building the config value.