Replaces the first module in the list of the specified type.
- Namespace
- Statiq
.Common - Containing Type
- ModuleList
Syntax
public ModuleList ReplaceFirst<TModule>(IModule module) where TModule : class, IModule
Type Parameters
Name | Description |
---|---|
TModule | The type of the module to replace. |
Parameters
Name | Type | Description |
---|---|---|
module | IModule | The replacement module. |
Return Value
Type | Description |
---|---|
ModuleList | The current instance. |