UtilReflectionTypeHasPublicDefaultConstructor Method
Determines whether the source Type has defined a public default parameterless constructor.
Namespace: DevCase.Core.Diagnostics.Assembly.ReflectionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool TypeHasPublicDefaultConstructor(
Type type
)
Public Shared Function TypeHasPublicDefaultConstructor (
type As Type
) As Boolean
Dim type As Type
Dim returnValue As Boolean
returnValue = UtilReflection.TypeHasPublicDefaultConstructor(type)
public:
static bool TypeHasPublicDefaultConstructor(
Type^ type
)
static member TypeHasPublicDefaultConstructor :
type : Type -> bool
No code example is currently available or this language may not be supported.
- type Type
-
The source Type.
Boolean
Returns
if the source
Type
has defined a public default parameterless constructor;
otherwise,
.
This is a code example.
No code example is currently available or this language may not be supported.
Dim type As Type = GetType(Rectangle)
Dim result As Boolean = TypeHasPublicDefaultConstructor(type)
Console.WriteLine(result)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.