Gets the index of the first module of the specified type.
- Namespace
- Statiq
.Common - Containing Type
- ModuleList
Syntax
public int IndexOfFirst<TModule>() where TModule : class, IModule
Type Parameters
Name | Description |
---|---|
TModule | The type of the module to find. |
Return Value
Type | Description |
---|---|
int | The index of the first module of the specified type or -1 if a module of the specified type could not be found. |