Gets the default no arg constructor for the Type.
Namespace: NHibernate.UtilAssembly: 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
Exception | Condition |
---|---|
NHibernate..::..InstantiationException | Thrown when there is a problem calling the method GetConstructor on Type. |