namespace KYFramework; public class ListComponent: List, IDisposable { public static ListComponent Create() { return Game.ObjectPool.Fetch(typeof (ListComponent)) as ListComponent; } public void Dispose() { this.Clear(); Game.ObjectPool.Recycle(this); } }