28 lines
646 B
C#
28 lines
646 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace UnityEngine.UI
|
|
{
|
|
// Token: 0x020000A1 RID: 161
|
|
internal static class ListPool<T>
|
|
{
|
|
// Token: 0x060005E6 RID: 1510 RVA: 0x0001DA08 File Offset: 0x0001BE08
|
|
public static List<T> Get()
|
|
{
|
|
return ListPool<T>.s_ListPool.Get();
|
|
}
|
|
|
|
// Token: 0x060005E7 RID: 1511 RVA: 0x0001DA27 File Offset: 0x0001BE27
|
|
public static void Release(List<T> toRelease)
|
|
{
|
|
ListPool<T>.s_ListPool.Release(toRelease);
|
|
}
|
|
|
|
// Token: 0x040002C1 RID: 705
|
|
private static readonly ObjectPool<List<T>> s_ListPool = new ObjectPool<List<T>>(null, delegate(List<T> l)
|
|
{
|
|
l.Clear();
|
|
});
|
|
}
|
|
}
|