Finds the constructor that takes the parameters.

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

Syntax

C#
public static ConstructorInfo GetConstructor(
	Type type,
	IType[] types
)
Visual Basic
Public Shared Function GetConstructor ( _
	type As Type, _
	types As IType() _
) As ConstructorInfo
Visual C++
public:
static ConstructorInfo^ GetConstructor(
	Type^ type, 
	array<IType^>^ types
)

Parameters

type
Type: System..::..Type
The Type to find the constructor in.
types
Type: array<NHibernate.Type..::..IType>[]()[][]
The IType objects to use to find the appropriate constructor.

Return Value

An ConstructorInfo that can be used to create the type with the specified parameters.

Exceptions

ExceptionCondition
NHibernate..::..InstantiationException Thrown when no constructor with the correct signature can be found.

See Also