ComponentOne Basic Library for UWP
GetDefaultPublicCtor Method

C1.UWP Assembly > C1.Xaml Namespace > TypeEx Class : GetDefaultPublicCtor Method
The type.
Returns default public instance parameter-less constructor for the specified type.
Syntax
'Declaration
 
Public Shared Function GetDefaultPublicCtor( _
   ByVal type As System.Type _
) As System.Reflection.ConstructorInfo
public static System.Reflection.ConstructorInfo GetDefaultPublicCtor( 
   System.Type type
)

Parameters

type
The type.

Return Value

The default constructor for the specified type if it exists; Null otherwise.
See Also

Reference

TypeEx Class
TypeEx Members