Switch.

Case(Object, IModule[]) Method

Summary

Defines a case.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Control
Containing Type
Switch

Syntax

public Switch 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
Switch The current module instance.
GitHub