# TryCreateInstance(out TContainer)

> Tries to create a new instance of TContainer.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## TryCreateInstance(T)

```csharp
bool TryCreateInstance(out TContainer instance)
```

### Parameters

**** (T): When this method returns, contains the created instance, if type construction succeeded; otherwise, the default value for `TContainer`.

### Returns

| Type                                                          | Description                                                                    |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a new instance of type `TContainer` was created; otherwise, `false`. |
