System::Activator::CreateInstance method

Activator::CreateInstance 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)
ParameterTypeDescription
typeconst System::TypeInfo&The type of object to create.

See Also