InsertBeforeLast<TModule>(Predicate<TModule>, IModule[]) Method
Inserts modules before the last module in the list of the specified type that satisfies a predicate.
Namespace
Statiq.Common
Containing Type
ModuleList

Syntax

public ModuleList InsertBeforeLast<TModule>(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
filter Predicate<TModule> A predicate determining at which module to insert the specified modules.
modules IModule[] The modules to insert.

Return Value

Type Description
ModuleList The current instance.