Table of Contents

Method Trim

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Trim<T>(IPool<T>)

Sets the capacity of the pool to the current active count.

public static void Trim<T>(this IPool<T> pool)

Parameters

pool IPool<T>

The pool to trim.

Type Parameters

T

The type of the objects in the pool.