GetFirst<TModule>(Predicate<TModule>) Method
Gets the first module of the specified type.
Namespace
Statiq.Common
Containing Type
ModuleList

Syntax

public TModule GetFirst<TModule>(Predicate<TModule> filter) where TModule : class, IModule

Type Parameters

Name Description
TModule The type of the module to find.

Parameters

Name Type Description
filter Predicate<TModule> A predicate determining which module to find.

Return Value

Type Description
TModule The first module of the specified type or null if a module of the specified type could not be found.