Method Release
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Release(T)
Releases the specified object back to the pool.
public void Release(T obj)
Parameters
obj
TThe object to release. We do not restrict the pool from containing null objects, therefore
obj
can be null if the create action passed into the constructor can produce null elements. This is an unusual use case though.
Exceptions
- ArgumentException
obj
is not in the pool.- InvalidOperationException
obj
is already inactive.