A collection of modules.
- Namespace
- Statiq
.Common - Interfaces
- Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type-.->Interface0["IList<IModule>"]
Type-.->Interface1["ICollection<IModule>"]
Type-.->Interface2["IEnumerable<IModule>"]
Type-.->Interface3["IEnumerable"]
Type["ModuleList"]
class Type type-node
Derived0["IfCondition"]-->Type
click Derived0 "/api/Statiq.Core/IfCondition"
Syntax
public class ModuleList : IList<IModule>, ICollection<IModule>, IEnumerable<IModule>, IEnumerable
Constructors
Name | Summary |
---|---|
ModuleList |
Creates a new empty module list. |
ModuleList |
Creates a new module list with an initial set of modules.
Any null items in the sequence of modules will be discarded.
|
ModuleList |
Creates a new module list with an initial set of modules.
Any null items in the sequence of modules will be discarded.
|
Properties
Name | Property Type | Summary |
---|---|---|
Count | int | |
IsReadOnly | bool | |
this[int] | IModule |
Methods
Name | Return Value | Summary |
---|---|---|
Add |
void |
Adds modules to the list.
Any
null items in the sequence of modules will be discarded.
|
AddRange |
void |
Adds modules to the list.
Any
null items in the sequence of modules will be discarded.
|
Append |
ModuleList |
Appends modules.
|
Clear |
void | |
Contains |
bool | |
CopyTo |
void | |
GetEnumerator |
IEnumerator |
|
GetFirst |
TModule |
Gets the first module of the specified type.
|
GetFirst |
TModule |
Gets the first module of the specified type.
|
GetLast |
TModule |
Gets the last module of the specified type.
|
GetLast |
TModule |
Gets the last module of the specified type.
|
IndexOf |
int | |
IndexOfFirst |
int |
Gets the index of the first module of the specified type.
|
IndexOfFirst |
int |
Gets the index of the first module of the specified type.
|
IndexOfLast |
int |
Gets the index of the last module of the specified type.
|
IndexOfLast |
int |
Gets the index of the last module of the specified type.
|
Insert |
void | |
Insert |
void |
Inserts modules into the list.
Any
null items in the sequence of modules will be discarded.
|
InsertAfterFirst |
ModuleList |
Inserts modules after the first module in the list of the specified type.
|
InsertAfterFirst |
ModuleList |
Inserts modules after the first module in the list of the specified type that satisfies a predicate.
|
InsertAfterLast |
ModuleList |
Inserts modules after the last module in the list of the specified type.
|
InsertAfterLast |
ModuleList |
Inserts modules after the last module in the list of the specified type that satisfies a predicate.
|
InsertBeforeFirst |
ModuleList |
Inserts modules before the first module in the list of the specified type.
|
InsertBeforeFirst |
ModuleList |
Inserts modules before the first module in the list of the specified type that satisfies a predicate.
|
InsertBeforeLast |
ModuleList |
Inserts modules before the last module in the list of the specified type.
|
InsertBeforeLast |
ModuleList |
Inserts modules before the last module in the list of the specified type that satisfies a predicate.
|
InsertRange |
void |
Inserts modules into the list.
Any
null items in the sequence of modules will be discarded.
|
Modify |
ModuleList |
Modifies an inner module list with the specified index.
|
Prepend |
ModuleList |
Prepends modules.
|
Remove |
bool | |
RemoveAt |
void | |
Replace |
ModuleList |
Replaces a module at the specified index.
|
ReplaceFirst |
ModuleList |
Replaces the first module in the list of the specified type.
|
ReplaceFirst |
ModuleList |
Replaces the first module in the list of the specified type that satisfies a predicate.
|
ReplaceLast |
ModuleList |
Replaces the last module in the list of the specified type.
|
ReplaceLast |
ModuleList |
Replaces the last module in the list of the specified type that satisfies a predicate.
|
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
ModuleList |