Gets the config for a given key cast to a specific config value.
- Namespace
- Statiq
.Common - Containing Type
- Multi
Config Module Base
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 |
The config or null if the key is not found. |