IConfigScope

Description

interface Tinman.Core.Config.IConfigScope

Derived from

IConfigValueBag

Extended by

ConfigScope sealed

A IConfigScope represents a set of variables.

The set of existing local variables is exposed via the IConfigValueBag base interface. New variables cannot be added to the scope but variable values can be set freely.

Public / Methods

Resolve​Type​Null


public method ResolveTypeNull → (1)

name in : string

[not-empty]
The incomplete config type name.

returns → ConfigType

The config type or null.

Tries to resolve the given incomplete name of a config type, using some additional information from the scope (for example using directives).

Set​Variable


public method SetVariable → (2)

name in : string

[not-empty]
The variable name.

value in : ConfigValue

[not-null]
The variable value.

Sets a variable value in this scope.

ConfigException

If name in has not been found or if value in is not assignable to the variable type.

Extensions

Set​Variable

4 overloads


public static method SetVariable1 → (2)

name in : string

[not-empty]
The variable name.

value in : bool

The variable value.

Sets a variable value in this scope.

ConfigException

If name in has not been found or if value in is not assignable to ConfigType.Bool.


public static method SetVariable2 → (2)

name in : string

[not-empty]
The variable name.

value in : float64

The variable value.

Sets a variable value in this scope.

ConfigException

If name in has not been found or if value in is not assignable to ConfigType.Num.


public static method SetVariable3 → (2)

name in : string

[not-empty]
The variable name.

value in : string

The variable value.

Sets a variable value in this scope.

ConfigException

If name in has not been found or if value in is not assignable to ConfigType.Str.


public static method SetVariable4 → (2)

name in : string

[not-empty]
The variable name.

value in : Path

The variable value.

Sets a variable value in this scope.

ConfigException

If name in has not been found or if value in is not assignable to ConfigType.Path.