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