using System; using XUtliPoolLib; namespace XMainClient { internal class SelectorPool { private static ObjectPool selectors = new ObjectPool(new ObjectPool.CreateObj(SelectorPool.Create), null, null); public static Selector Create() { return new Selector(); } public static Selector Get() { return SelectorPool.selectors.Get(); } public static void Release(Selector selector) { SelectorPool.selectors.Release(selector); } } }