Object pool pattern: Difference between revisions

Content deleted Content added
Fixed up a grammatical error and added suggestion to use try/finally
C#: comments style
Line 80:
namespace IVSR.DesignPatern.Objectpool
{
/*/ The PooledObject class is the type that is expensive or slow to instantiate,
// or that has limited availability, so is to be held in the object pool. */
public class PooledObject
{
Line 93 ⟶ 94:
}
 
/*/ The Pool class is the most important class in the object pool design pattern. It controls access to the
// pooled objects, maintaining a list of available objects and a collection of objects that have already been
// requested from the pool and are still in use. The pool also ensures that objects that have been released
// are returned to a suitable state, ready for the next time they are requested. */
public static class Pool
{