You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
ReflectionExtensions.GetDefaultConstructor Method
Returns default constructor.
Namespace:CodeJam.Reflection Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
Syntax
C#
public static ConstructorInfo GetDefaultConstructor(
this Type type,
bool exceptionIfNotExists = false
)
VB
<ExtensionAttribute>
Public Shared Function GetDefaultConstructor (
type As Type,
Optional exceptionIfNotExists As Boolean = false
) As ConstructorInfo
F#
[<ExtensionAttribute>]
static member GetDefaultConstructor :
type : Type *
?exceptionIfNotExists : bool
(* Defaults:
let _exceptionIfNotExists = defaultArg exceptionIfNotExists false
*)
-> ConstructorInfo