namespace AlicizaX.UI { using System; public interface IObjectPool : IDisposable { object Allocate(); void Free(object obj); } public interface IObjectPool : IObjectPool, IDisposable where T : class { new T Allocate(); void Free(T obj); } }