/// <summary> /// Internal function to return objects to the pool. /// </summary> /// <param name="finished">The object to be returned.</param> internal override void returnObject(PooledObject finished) { finished.callReset(); pool.Push((PooledType)finished); }
/// <summary> /// Internal function to return finished objects. /// </summary> /// <param name="finished">The object to return to the pool.</param> internal abstract void returnObject(PooledObject finished);