Class Pool
public static class Pool
- Inheritance
-
objectPool
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
deactivatorAction<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
activatorFunc<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
activatorFunc<T>deactivatorAction<T>
Returns
- Pool<T>
Type Parameters
T