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

Syntax

public object GetInstance(Type assignableType, string typeName, bool ignoreCase = false)

Parameters

Name Type Description
assignableType Type The assignable type of instance to get.
typeName string The name of the type.
ignoreCase bool if set to true ignore the case of the type name.

Return Value

Type Description
object An instance of the first class that matches the specified type and name or null if a corresponding type could not be found.