ModuleList Class

Summary

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

Syntax

public class ModuleList : IModuleList, IList<IModule>

Constructors

Name Summary
ModuleList() Creates a new empty module list.
ModuleList(IEnumerable<IModule>) Creates a new module list with an initial set of modules. Any null items in the sequence of modules will be discarded.
ModuleList(IModule[]) Creates a new module list with an initial set of modules. Any null items in the sequence of modules will be discarded.

Properties

Name Value Summary
Count int
IsReadOnly bool
this[int] IModule
this[string] IModule
Gets the module with the specified name.

Methods

Name Value Summary
Add(IModule) void
Add(IModule[]) void
Adds modules to the list. Any null items in the sequence of modules will be discarded.
Add(string, IModule) void
Adds a module to the list with a specified name.
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.
Clear() void
Contains(IModule) bool
Contains(string) bool
Determines if the list contains a module with the specified name.
CopyTo(IModule[], int) void
GetEnumerator() IEnumerator<IModule>
IndexOf(IModule) int
IndexOf(string) int
Gets the index of the module with the specified name.
Insert(int, IModule) void
Insert(int, IModule[]) void
Inserts modules into the list. Any null items in the sequence of modules will be discarded.
Insert(int, string, IModule) void
Inserts a module into the list with a specified name.
Remove(IModule) bool
Remove(string) bool
Removes a module by name.
RemoveAt(int) void
TryGetValue(string, IModule) bool
Attempts to get a module with the specified name.
GitHub