Class Pool<T>
Syntax
public abstract class Pool<T> : IPool where T : class
Type Parameters
Properties
CountInstancesInPool
Declaration
public int CountInstancesInPool { get; }
Property Value
Methods
Clear()
Declaration
public virtual void Clear()
Get()
Declaration
Returns
New()
Declaration
protected abstract T New()
Returns
Reset(T)
Declaration
protected abstract void Reset(T instance)
Parameters
Type |
Name |
Description |
T |
instance |
|
Return(object)
Declaration
public void Return(object instance)
Parameters
Type |
Name |
Description |
object |
instance |
|
Return(T)
Declaration
public virtual void Return(T instance)
Parameters
Type |
Name |
Description |
T |
instance |
|
Implements