Interface IPooledObjectPolicy<T>
Object creation policy.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public interface IPooledObjectPolicy<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the pooled object. |
Methods
Create()
Creates a new pooled object.
Declaration
T Create()
Returns
| Type | Description |
|---|---|
| T | The pooled object. |
Return(T)
Returns the pooled object.
Declaration
bool Return(T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The pooled object. |
Returns
| Type | Description |
|---|---|
| bool | True if everything is okay. |