Casts the config delegate to the specified type.
- Namespace
- Statiq
.Common - Containing Type
- Config
Transform Extensions
Syntax
public static Config<TValue> Cast<TValue>(this IConfig config)
Type Parameters
| Name | Description |
|---|---|
| TValue | The type to cast the value to. |
Parameters
| Name | Type | Description |
|---|---|---|
| config | IConfig | The config delegate to cast. |
Return Value
| Type | Description |
|---|---|
| Config |
The config value as the specified type or default if config is null. |