ModuleListExtensions.

Modify<TModuleList>(TModuleList, int, Action<IModule>) Method

Summary

Modifies an inner module list with the specified index.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Modules
Containing Type
ModuleListExtensions

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.
GitHub