using System.Collections.Generic; namespace RedHotRoast { public static class ListPool { private static readonly ObjectPool> s_ListPool = new(null, Clear); private static void Clear(List l) { l.Clear(); } public static List Get() { return s_ListPool.Get(); } public static void Release(List toRelease) { s_ListPool.Release(toRelease); } } }