While Wyam is certainly still usable, it's been rebranded and rebooted as Statiq with a ton of improvements. You almost certainly want to look there unless you're already a Wyam user.

IfCondition Class

Summary

A collection of optionally named modules.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Control
Interfaces
Base Types
graph BT Type-->Base0["ModuleList"] click Base0 "/api/Wyam.Common.Modules/ModuleList" Base0-->Base1["Object"] Type-.->Interface0["IModuleList"] click Interface0 "/api/Wyam.Common.Modules/IModuleList" Type-.->Interface1["IList<IModule>"] Type["IfCondition"] class Type type-node

Syntax

public class IfCondition : ModuleList, IModuleList, IList<IModule>

Properties

Name Value Summary
ContextConfig ContextConfig
Count int
Inherited from ModuleList
DocumentConfig DocumentConfig
IsFinalElse bool
IsReadOnly bool
Inherited from ModuleList
this[int] IModule
Inherited from ModuleList
this[string] IModule
Gets the module with the specified name.
Inherited from ModuleList

Methods

Name Value Summary
Add(IModule) void
Inherited from ModuleList
Add(IModule[]) void
Adds modules to the list. Any null items in the sequence of modules will be discarded.
Inherited from ModuleList
Add(string, IModule) void
Adds a module to the list with a specified name.
Inherited from ModuleList
AsKeyValuePairs() IEnumerable<KeyValuePair<string, IModule>>
Returns the list as a sequence of key-value pairs with the keys being the module names and the values being the module instances.
Inherited from ModuleList
Clear() void
Inherited from ModuleList
Contains(IModule) bool
Inherited from ModuleList
Contains(string) bool
Determines if the list contains a module with the specified name.
Inherited from ModuleList
CopyTo(IModule[], int) void
Inherited from ModuleList
GetEnumerator() IEnumerator<IModule>
Inherited from ModuleList
IndexOf(IModule) int
Inherited from ModuleList
IndexOf(string) int
Gets the index of the module with the specified name.
Inherited from ModuleList
Insert(int, IModule) void
Inherited from ModuleList
Insert(int, IModule[]) void
Inserts modules into the list. Any null items in the sequence of modules will be discarded.
Inherited from ModuleList
Insert(int, string, IModule) void
Inserts a module into the list with a specified name.
Inherited from ModuleList
Remove(IModule) bool
Inherited from ModuleList
Remove(string) bool
Removes a module by name.
Inherited from ModuleList
RemoveAt(int) void
Inherited from ModuleList
TryGetValue(string, IModule) bool
Attempts to get a module with the specified name.
Inherited from ModuleList
GitHub