Method Release
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Release(T)
Returns the object to the pool.
public void Release(T obj)
Parameters
obj
TThe object to return to the pool.
Remarks
This method does not check if the object is already inactive, and will not deactivate it if it is. This method will also not check if this object does not belong in the pool at all (that is, was never acquired from this), and will not throw an exception if this is the case.
Exceptions
- InvalidOperationException
The pool is full.