ModuleListExtensions.

InsertBeforeFirst<TModule>(IModuleList, Predicate<TModule>, IModule[]) Method

Summary

Inserts modules before the first module in the list of the specified type that satisfies a predicate.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Modules
Containing Type
ModuleListExtensions

Syntax

public static IModuleList InsertBeforeFirst<TModule>(this IModuleList moduleList, Predicate<TModule> filter, params IModule[] modules) 
    where TModule : class, IModule

Type Parameters

Name Description
TModule The type of the module at which to insert the modules.

Parameters

Name Type Description
moduleList IModuleList The Wyam.Common.Modules.ModuleList.
filter Predicate<TModule> A predicate determining at which module to insert the specified modules.
modules IModule[] The modules to insert.

Return Value

Type Description
IModuleList The current instance.
GitHub