A utility class that provides automatic ListPool release using 'using' statement pattern. Example usage: using var scope = new ListPoolScope<GameEntity>(); // Use scope.List for operations // List is automatically released when scope is disposed.
More...
|
|
| ListPoolScope () |
| | Initializes a new ListPoolScope and gets a list from the pool.
|
| |
|
void | Dispose () |
| | Releases the list back to the pool.
|
| |
|
|
List< T > | List [get] |
| | Gets the pooled list instance.
|
| |
A utility class that provides automatic ListPool release using 'using' statement pattern. Example usage: using var scope = new ListPoolScope<GameEntity>(); // Use scope.List for operations // List is automatically released when scope is disposed.
- Template Parameters
-
| T | The type of elements in the list |