using System.Collections.Generic; namespace XCharts { public static class XAxisPool { private static readonly ObjectPool s_ListPool = new ObjectPool(null, null); public static XAxis Get() { return s_ListPool.Get(); } public static void Release(XAxis toRelease) { s_ListPool.Release(toRelease); } } public static class YAxisPool { private static readonly ObjectPool s_ListPool = new ObjectPool(null, null); public static YAxis Get() { return s_ListPool.Get(); } public static void Release(YAxis toRelease) { s_ListPool.Release(toRelease); } } }