public PoolableList <T> Rent() { PoolableList <T> item; if (Pool.Count > 0) { item = Pool.Pop(); } else { item = new PoolableList <T>(this); } return(item); }
public void Return(PoolableList <T> item) { item.Clear(); Pool.Push(item); }