GetConfig<TValue>(string) Method
Gets the config for a given key cast to a specific config value.
Namespace
Statiq.Common
Containing Type
MultiConfigModuleBase

Syntax

protected Config<TValue> GetConfig<TValue>(string key)

Type Parameters

Name Description
TValue The value of the config.

Parameters

Name Type Description
key string The key of the config to get.

Return Value

Type Description
Config<TValue> The config or null if the key is not found.