Finds the constructor that takes the parameters.
Namespace:
NHibernate.UtilAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function GetConstructor ( _ type As Type, _ types As IType() _ ) As ConstructorInfo |
C# |
---|
public static ConstructorInfo GetConstructor( Type type, IType[] types ) |
Visual C++ |
---|
public: static ConstructorInfo^ GetConstructor( Type^ type, array<IType^>^ types ) |
JavaScript |
---|
NHibernate.Util.ReflectHelper.getConstructor = function(type, 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. |