Click or drag to resize

ReflectionUtilsCreateInstanceFromType Method

Creates an instance from a type by calling the parameterless constructor. Note this will not work with COM objects - continue to use the Activator.CreateInstance for COM objects.

Namespace:  Koden.Utils
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public static Object CreateInstanceFromType(
	Type typeToCreate,
	params Object[] args
)

Parameters

typeToCreate
Type: SystemType
The type from which to create an instance.
args
Type: SystemObject
The arguments.

Return Value

Type: Object
object
See Also