## Activator::CreateInstance method


Creates an instance of the specified type using the parameterless constructor of that type.

```cpp
static System::SharedPtr<System::Object> System::Activator::CreateInstance(const System::TypeInfo &type)
```


| Parameter | Type | Description |
| --- | --- | --- |
| type | const System::TypeInfo\& | The type of object to create. |

## See Also

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TypeInfo](../../typeinfo/)
* Class [Activator](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
