Table of Contents

Class Pool

Namespace
Core.Pooling
Assembly
Core.dll
public static class Pool
Inheritance
object
Pool

Methods

For<T>()

public static Pool<T> For<T>() where T : class, IPoolable, new()

Returns

Pool<T>

Type Parameters

T

For<T>(Action<T>)

public static Pool<T> For<T>(Action<T> deactivator) where T : class, new()

Parameters

deactivator Action<T>

Returns

Pool<T>

Type Parameters

T

For<T>(Func<T>)

public static Pool<T> For<T>(Func<T> activator) where T : class, IPoolable

Parameters

activator Func<T>

Returns

Pool<T>

Type Parameters

T

For<T>(Func<T>, Action<T>)

public static Pool<T> For<T>(Func<T> activator, Action<T> deactivator) where T : class

Parameters

activator Func<T>
deactivator Action<T>

Returns

Pool<T>

Type Parameters

T