Class Pool<T>
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.Pooling
Syntax
public abstract class Pool<T> : IPool where T : class
Type Parameters
Name | Description |
---|---|
T |
Properties
CountInstancesInPool
Declaration
public int CountInstancesInPool { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Clear()
Declaration
public virtual void Clear()
Get()
Declaration
public virtual T Get()
Returns
Type | Description |
---|---|
T |
New()
Declaration
protected abstract T New()
Returns
Type | Description |
---|---|
T |
Reset(T)
Declaration
protected abstract void Reset(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance |
Return(T)
Declaration
public virtual void Return(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance |
Return(object)
Declaration
public void Return(object instance)
Parameters
Type | Name | Description |
---|---|---|
object | instance |