Summary
Modifies an inner module list with the specified index.
Syntax
public static TModuleList Modify<TModuleList>(this TModuleList moduleList, int index, Action<IModule> action)
where TModuleList : IModuleList
Type Parameters
Name |
Description |
TModuleList |
The type of the module list. |
Parameters
Name |
Type |
Description |
moduleList |
TModuleList |
The Wyam.Common.Modules.ModuleList . |
index |
int |
The index of the inner module to modify. |
action |
Action<IModule> |
The action to apply to the inner module. |
Return Value
Type |
Description |
TModuleList |
The current instance. |