Gets the default no arg constructor for the Type.

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

Syntax

C#
public static ConstructorInfo GetDefaultConstructor(
	Type type
)
Visual Basic
Public Shared Function GetDefaultConstructor ( _
	type As Type _
) As ConstructorInfo
Visual C++
public:
static ConstructorInfo^ GetDefaultConstructor(
	Type^ 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