Finds the constructor that takes the parameters.
Namespace: NHibernate.UtilAssembly: 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
| Exception | Condition |
|---|---|
| NHibernate..::..InstantiationException | Thrown when no constructor with the correct signature can be found. |