Summary
Creates an
Weaver.ObjectPool`1 that creates new items using a the default constructor of
T and uses a System.Collections.Generic.HashSet`1 to keep track of its
Weaver.ObjectPool`1.ActiveObjects.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- ObjectPool
Syntax
public static ObjectPool<T> CreateDefaultPool<T>(int preAllocate = 0) where T : class, new()
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| preAllocate | int |
Return Value
| Type | Description |
|---|---|
| ObjectPool |