public T NextObject() { T first = m_list.RemoveFirstItem(); if (first != null) { return(first); } return(new T()); }
private void RecycleObjectLaterCallback(Timer timer) { Debug.Assert(m_recycleList != null && m_recycleList.size > 0); T t; while ((t = m_recycleList.RemoveFirstItem()) != null) { RecycleObject(t); } }