Ground of Aces Scripting API
Loading...
Searching...
No Matches
ListPoolScope< T > Class Template Referencesealed

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...

Public Member Functions

 ListPoolScope ()
 Initializes a new ListPoolScope and gets a list from the pool.
 
void Dispose ()
 Releases the list back to the pool.
 

Properties

List< T > List [get]
 Gets the pooled list instance.
 

Detailed Description

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
TThe type of elements in the list