A union configuration value that can be either a delegate
that uses a document and context or a simple value. Use the factory methods
in the
Config
class to create one. Instances can also be created
through implicit casting from the value type. Note that due to overload ambiguity,
if a value type of object is used, then all overloads should also be Config<TValue>
.
- Namespace
- Statiq
.Common - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IConfig"]
click Interface0 "/api/Statiq.Common/IConfig"
Type-.->Interface1["IMetadataValue"]
click Interface1 "/api/Statiq.Common/IMetadataValue"
Type["Config<TValue>"]
class Type type-node
Syntax
public class Config<TValue> : IConfig, IMetadataValue
Type Parameters
Name | Description |
---|---|
TValue | The value type for this config data. |
Properties
Name | Property Type | Summary |
---|---|---|
RequiresDocument | bool |
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
Config |
|
implicit operator |
Config |
|
implicit operator |
Config |