Summary
A collection of optionally named modules.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Modules - Interfaces
-
- IModuleList
- IList
<IModule>
- 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 |
Creates a new module list with an initial set of modules.
Any null items in the sequence of modules will be discarded.
|
| ModuleList |
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 |
void | |
| Add |
void |
Adds modules to the list.
Any
null items in the sequence of modules will be discarded.
|
| Add |
void |
Adds a module to the list with a specified name.
|
| AsKeyValuePairs |
IEnumerable |
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 |
bool | |
| Contains |
bool |
Determines if the list contains a module with the specified name.
|
| CopyTo |
void | |
| GetEnumerator |
IEnumerator |
|
| IndexOf |
int | |
| IndexOf |
int |
Gets the index of the module with the specified name.
|
| Insert |
void | |
| Insert |
void |
Inserts modules into the list.
Any
null items in the sequence of modules will be discarded.
|
| Insert |
void |
Inserts a module into the list with a specified name.
|
| Remove |
bool | |
| Remove |
bool |
Removes a module by name.
|
| RemoveAt |
void | |
| TryGetValue |
bool |
Attempts to get a module with the specified name.
|
