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

Syntax

public object GetInstance(Type type)

Parameters

Name Type Description
type Type The type of instance to get.

Return Value

Type Description
object An instance of the specified type, or the first class that can be assigned to the specified type, or null.