public NeatlyTimerImplement Create() { NeatlyTimerImplement imp; if (pool.Count <= 0) { imp = new NeatlyTimerImplement(); return(imp); } imp = pool[pool.Count - 1]; pool.RemoveAt(pool.Count - 1); return(imp); }
public void Recycle(NeatlyTimerImplement imp) { imp.Dispose(); pool.Add(imp); }