Table of Contents

Method Release

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Release(T)

Releases the specified object back to the pool.

[Version(3, 2, 0)]
public void Release(T obj)

Parameters

obj T

The 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.