Summary
Creates an
Weaver.ObjectPool`1 that creates new items using a parameterless constructor.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- ObjectPool
Syntax
public static ObjectPool<T> CreateDefaultPool<T>(ICollection<T> activeObjects, int preAllocate = 0)
where T : class, new()
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| activeObjects | ICollection |
|
| preAllocate | int |
Return Value
| Type | Description |
|---|---|
| ObjectPool |