Interface IPool<T>
Defines the contract for a class that stores and retrieves commonly used objects.
public interface IPool<T>
Type Parameters
TThe type that is stored in the pool.
- Extension Methods
Methods
Get()
Retrieves a stored object of type T, or creates it if it does not exist.
T Get()
Returns
- T
The stored object, or a new object, of type
T.
Return(T)
Returns the object to the pool.
void Return(T obj)
Parameters
objTThe object to return, of type
T.