Skip to content

CreateTypeInstance Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.ReflectionTools.dll

Overloads ​

NameDescription
T CreateTypeInstance()Activate/Instantiate an instance of a Type
object CreateTypeInstance(Type type)Activate/Instantiate an instance of a Type
T CreateTypeInstance(object[] args)Activate/Instantiate an instance of a Type
object CreateTypeInstance(Type type, object[] args)Activate/Instantiate an instance of a Type and pass args array to the Constructor

object CreateTypeInstance(Type type) ​

csharp
object CreateTypeInstance(Type type)

Activate/Instantiate an instance of a Type

Parameters ​

NameDescription
typeType of object to Instantiate

Returns ​

new object

object CreateTypeInstance(Type type, object[] args) ​

csharp
object CreateTypeInstance(Type type, object[] args)

Activate/Instantiate an instance of a Type and pass args array to the Constructor

T CreateTypeInstance() ​

csharp
T CreateTypeInstance()

Activate/Instantiate an instance of a Type

Returns ​

new object

T CreateTypeInstance(object[] args) ​

csharp
T CreateTypeInstance(object[] args)

Activate/Instantiate an instance of a Type

Returns ​

new object