Creates an instance of the specified type.

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

Syntax

C#
Object CreateInstance(
	Type type,
	bool nonPublic
)
Visual Basic
Function CreateInstance ( _
	type As Type, _
	nonPublic As Boolean _
) As Object
Visual C++
Object^ CreateInstance(
	Type^ type, 
	bool nonPublic
)

Parameters

type
Type: System..::..Type
The type of object to create.
nonPublic
Type: System..::..Boolean
true if a public or nonpublic default constructor can match; false if only a public default constructor can match.

Return Value

A reference to the created object.

See Also