Creates an instance of the specified type using the constructor that best matches the specified parameters.

Namespace: NHibernate.Bytecode
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object CreateInstance(
	Type type,
	params Object[] ctorArgs
)
Visual Basic
Function CreateInstance ( _
	type As Type, _
	ParamArray ctorArgs As Object() _
) As Object
Visual C++
Object^ CreateInstance(
	Type^ type, 
	... array<Object^>^ ctorArgs
)

Parameters

type
Type: System..::..Type
The type of object to create.
ctorArgs
Type: array<System..::..Object>[]()[][]
An array of constructor arguments.

Return Value

A reference to the created object.

See Also