namespace Cryville.Common.Buffers { /// /// A resource pool that allows reusing instances of type , which has a parameterless constructor. /// /// The type of the objects in the pool. public class SimpleObjectPool : ObjectPool where T : class, new() { /// /// Creates an instance of the class. /// /// The capacity of the pool. public SimpleObjectPool(int capacity) : base(capacity) { } protected override T Construct() { return new T(); } } }