ModuleListExtensions.

ReplaceFirst<TModule>(IModuleList, IModule, string) Method

Summary

Replaces the first module in the list of the specified type.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Modules
Containing Type
ModuleListExtensions

Syntax

public static IModuleList ReplaceFirst<TModule>(this IModuleList moduleList, IModule module, string name = null) 
    where TModule : class, IModule

Type Parameters

Name Description
TModule The type of the module to replace.

Parameters

Name Type Description
moduleList IModuleList The Wyam.Common.Modules.ModuleList.
module IModule The replacement module.
name string The name of the replacement module.

Return Value

Type Description
IModuleList The current instance.
GitHub