ModuleListExtensions.

GetFirst<TModule>(IModuleList) Method

Summary

Gets the first module of the specified type.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Modules
Containing Type
ModuleListExtensions

Syntax

public static TModule GetFirst<TModule>(this IModuleList moduleList) where TModule : class, IModule

Type Parameters

Name Description
TModule The type of the module to find.

Parameters

Name Type Description
moduleList IModuleList The Wyam.Common.Modules.ModuleList to search.

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.
GitHub