Gets the default no arg constructor for the Type.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetDefaultConstructor ( _
	type As Type _
) As ConstructorInfo
C#
public static ConstructorInfo GetDefaultConstructor(
	Type type
)
Visual C++
public:
static ConstructorInfo^ GetDefaultConstructor(
	Type^ type
)
JavaScript
NHibernate.Util.ReflectHelper.getDefaultConstructor = function(type);

Parameters

type
Type: System..::.Type
The Type to find the constructor for.

Return Value

The ConstructorInfo for the no argument constructor, or nullNothingnullptra null reference (Nothing in Visual Basic) if the type is an abstract class.

Exceptions

ExceptionCondition
NHibernate..::.InstantiationException Thrown when there is a problem calling the method GetConstructor on Type.

See Also