예제 #1
0
        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);
        }
예제 #2
0
 public void Recycle(NeatlyTimerImplement imp)
 {
     imp.Dispose();
     pool.Add(imp);
 }