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