using System; using System.Collections.Generic; namespace ET { public class ListComponent: List, IDisposable { public static ListComponent Create() { return ObjectPool.Instance.Fetch(typeof (ListComponent)) as ListComponent; } public void Dispose() { this.Clear(); ObjectPool.Instance.Recycle(this); } } }