ModuleListExtensions Class

Summary

Extensions for use with Wyam.Common.Modules.ModuleList.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Modules
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ModuleListExtensions"] class Type type-node

Syntax

public static class ModuleListExtensions

Methods

Name Value Summary
Append<TModuleList>(TModuleList, IModule[]) TModuleList
Appends modules.
static
Append<TModuleList>(TModuleList, string, IModule) TModuleList
Appends a named module.
static
GetFirst<TModule>(IModuleList) TModule
Gets the first module of the specified type.
static
GetFirst<TModule>(IModuleList, Predicate<TModule>) TModule
Gets the first module of the specified type.
static
GetLast<TModule>(IModuleList) TModule
Gets the last module of the specified type.
static
GetLast<TModule>(IModuleList, Predicate<TModule>) TModule
Gets the last module of the specified type.
static
IndexOfFirst<TModule>(IModuleList) int
Gets the index of the first module of the specified type.
static
IndexOfFirst<TModule>(IModuleList, Predicate<TModule>) int
Gets the index of the first module of the specified type.
static
IndexOfLast<TModule>(IModuleList) int
Gets the index of the last module of the specified type.
static
IndexOfLast<TModule>(IModuleList, Predicate<TModule>) int
Gets the index of the last module of the specified type.
static
InsertAfter<TModuleList>(TModuleList, string, IModule[]) TModuleList
Inserts modules after the module with the specified name.
static
InsertAfter<TModuleList>(TModuleList, string, string, IModule) TModuleList
Inserts modules after the module with the specified name.
static
InsertAfterFirst<TModule>(IModuleList, IModule[]) IModuleList
Inserts modules after the first module in the list of the specified type.
static
InsertAfterFirst<TModule>(IModuleList, Predicate<TModule>, IModule[]) IModuleList
Inserts modules after the first module in the list of the specified type that satisfies a predicate.
static
InsertAfterFirst<TModule>(IModuleList, Predicate<TModule>, string, IModule) IModuleList
Inserts modules after the first module in the list of the specified type that satisfies a predicate.
static
InsertAfterFirst<TModule>(IModuleList, string, IModule) IModuleList
Inserts modules after the first module in the list of the specified type.
static
InsertAfterLast<TModule>(IModuleList, IModule[]) IModuleList
Inserts modules after the last module in the list of the specified type.
static
InsertAfterLast<TModule>(IModuleList, Predicate<TModule>, IModule[]) IModuleList
Inserts modules after the last module in the list of the specified type that satisfies a predicate.
static
InsertAfterLast<TModule>(IModuleList, Predicate<TModule>, string, IModule) IModuleList
Inserts modules after the last module in the list of the specified type that satisfies a predicate.
static
InsertAfterLast<TModule>(IModuleList, string, IModule) IModuleList
Inserts modules after the last module in the list of the specified type.
static
InsertBefore<TModuleList>(TModuleList, string, IModule[]) TModuleList
Inserts modules before the module with the specified name.
static
InsertBefore<TModuleList>(TModuleList, string, string, IModule) TModuleList
Inserts modules before the module with the specified name.
static
InsertBeforeFirst<TModule>(IModuleList, IModule[]) IModuleList
Inserts modules before the first module in the list of the specified type.
static
InsertBeforeFirst<TModule>(IModuleList, Predicate<TModule>, IModule[]) IModuleList
Inserts modules before the first module in the list of the specified type that satisfies a predicate.
static
InsertBeforeFirst<TModule>(IModuleList, Predicate<TModule>, string, IModule) IModuleList
Inserts modules before the first module in the list of the specified type that satisfies a predicate.
static
InsertBeforeFirst<TModule>(IModuleList, string, IModule) IModuleList
Inserts modules before the first module in the list of the specified type.
static
InsertBeforeLast<TModule>(IModuleList, IModule[]) IModuleList
Inserts modules before the last module in the list of the specified type.
static
InsertBeforeLast<TModule>(IModuleList, Predicate<TModule>, IModule[]) IModuleList
Inserts modules before the last module in the list of the specified type that satisfies a predicate.
static
InsertBeforeLast<TModule>(IModuleList, Predicate<TModule>, string, IModule) IModuleList
Inserts modules before the last module in the list of the specified type that satisfies a predicate.
static
InsertBeforeLast<TModule>(IModuleList, string, IModule) IModuleList
Inserts modules before the last module in the list of the specified type.
static
Modify<TModuleList>(TModuleList, int, Action<IModule>) TModuleList
Modifies an inner module list with the specified index.
static
Modify<TModuleList>(TModuleList, string, Action<IModule>) TModuleList
Modifies an inner module with the specified name.
static
Prepend<TModuleList>(TModuleList, IModule[]) TModuleList
Prepends modules.
static
Prepend<TModuleList>(TModuleList, string, IModule) TModuleList
Prepends a named module.
static
Replace<TModuleList>(TModuleList, int, IModule, string) TModuleList
Replaces a module at the specified index.
static
Replace<TModuleList>(TModuleList, string, IModule, string) TModuleList
Replaces a module with the specified name. The replacement module will have the same name as the module being replaced unless an alternate name is specified.
static
ReplaceFirst<TModule>(IModuleList, IModule, string) IModuleList
Replaces the first module in the list of the specified type.
static
ReplaceFirst<TModule>(IModuleList, Predicate<TModule>, IModule, string) IModuleList
Replaces the first module in the list of the specified type that satisfies a predicate.
static
ReplaceLast<TModule>(IModuleList, IModule, string) IModuleList
Replaces the last module in the list of the specified type.
static
ReplaceLast<TModule>(IModuleList, Predicate<TModule>, IModule, string) IModuleList
Replaces the last module in the list of the specified type that satisfies a predicate.
static
GitHub