CreateInstance()

Activator::CreateInstance(const System::TypeInfo&) method

Creates an instance of the specified type using the parameterless constructor of that type.

static System::SharedPtr<System::Object> System::Activator::CreateInstance(const System::TypeInfo &type)

Arguments

ParameterTypeDescription
typeconst System::TypeInfo&The type of object to create.

See Also