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