Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ListPool< T > Class Template Reference

Static Public Member Functions

static List< T > Get ()
 
static void Release (List< T > toRelease)
 

Static Private Attributes

static readonly ObjectPool< List< T > > s_ListPool
 

Detailed Description

Definition at line 3 of file ListPool.cs.

Member Function Documentation

◆ Get()

static List< T > ListPool< T >.Get ( )
inlinestatic

Definition at line 10 of file ListPool.cs.

11 {
12 return s_ListPool.Get();
13 }
static readonly ObjectPool< List< T > > s_ListPool
Definition: ListPool.cs:5

References ObjectPool< T >.Get(), and ListPool< T >.s_ListPool.

Referenced by ModifiedShadow.ModifyMesh().

◆ Release()

static void ListPool< T >.Release ( List< T >  toRelease)
inlinestatic

Definition at line 15 of file ListPool.cs.

16 {
17 s_ListPool.Release(toRelease);
18 }
void Release(T element)
Definition: ObjectPool.cs:44

References ObjectPool< T >.Release(), and ListPool< T >.s_ListPool.

Referenced by ModifiedShadow.ModifyMesh().

Member Data Documentation

◆ s_ListPool

readonly ObjectPool<List<T> > ListPool< T >.s_ListPool
staticprivate
Initial value:
= new ObjectPool<List<T>>(null, delegate(List<T> l)
{
l.Clear();
})

Definition at line 5 of file ListPool.cs.

Referenced by ListPool< T >.Get(), and ListPool< T >.Release().


The documentation for this class was generated from the following file: