FromDocument<TValue>(Func<IDocument, IExecutionContext, TValue>) Method
Creates a config value from a delegate that uses a document and the execution context.
Namespace
Statiq.Common
Containing Type
Config

Syntax

public static Config<TValue> FromDocument<TValue>(Func<IDocument, IExecutionContext, TValue> func)

Type Parameters

Name Description
TValue The type of config value.

Parameters

Name Type Description
func Func<IDocument, IExecutionContext, TValue> The delegate that produces the config value.

Return Value

Type Description
Config<TValue> A config object.