Replaces the last module in the list of the specified type that satisfies a predicate.
- Namespace
- Statiq
.Common - Containing Type
- ModuleList
Syntax
public ModuleList ReplaceLast<TModule>(Predicate<TModule> filter, IModule module)
where TModule : class, IModule
Type Parameters
Name | Description |
---|---|
TModule | The type of the module to replace. |
Parameters
Name | Type | Description |
---|---|---|
filter | Predicate |
A predicate determining which module to replace. |
module | IModule | The replacement module. |
Return Value
Type | Description |
---|---|
ModuleList | The current instance. |