//========= Copyright 2016-2018, HTC Corporation. All rights reserved. =========== using System.Collections.Generic; namespace HTC.UnityPlugin.Utility { public static class ListPool { private static readonly ObjectPool> pool = new ObjectPool>(() => new List(), null, e => e.Clear()); public static List Get() { return pool.Get(); } public static void Release(List toRelease) { pool.Release(toRelease); } } }