Case(object, IModule[]) Method
Defines a case.
Namespace
Statiq.Core
Containing Type
ExecuteSwitch

Syntax

public ExecuteSwitch Case(object value, params IModule[] modules)

Parameters

Name Type Description
value object The value to compare to the one returned by the document delegate. Must be a primitive object or an array of primitive objects.
modules IModule[] The modules to execute if the case object (or any objects in the array) matches the document object.

Return Value

Type Description
ExecuteSwitch The current module instance.