ComponentOne FinancialChart for WPF
GetDefaultPublicCtor Method



C1.WPF Namespace > TypeEx Class : GetDefaultPublicCtor Method
The type.
Returns default public instance parameter-less constructor for the specified type.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function GetDefaultPublicCtor( _
   ByVal type As Type _
) As ConstructorInfo
'Usage
 
Dim type As Type
Dim value As ConstructorInfo
 
value = TypeEx.GetDefaultPublicCtor(type)
[Extension()]
public static ConstructorInfo GetDefaultPublicCtor( 
   Type type
)
[Extension()]
public:
static ConstructorInfo^ GetDefaultPublicCtor( 
   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