GetInstance<T>(ClassCatalog, string, bool) Method
Gets an instance of a specified assignable type and name.
Namespace
Statiq.Common
Containing Type
ClassCatalogExtensions

Syntax

public static T GetInstance<T>(this ClassCatalog classCatalog, string typeName, bool ignoreCase = false)

Type Parameters

Name Description
T The assignable type of the instance to get.

Parameters

Name Type Description
classCatalog ClassCatalog The class catalog.
typeName string The name of the type.
ignoreCase bool if set to true ignore the case of the type name.

Return Value

Type Description
T An instance of the first class that matches the specified type and name.