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
objTThe object to release. We do not restrict the pool from containing null objects, therefore
objcan be null if the create action passed into the constructor can produce null elements. This is an unusual use case though.
Exceptions
- ArgumentException
objis not in the pool.- InvalidOperationException
objis already inactive.