Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);