Click or drag to resize

PoolBase<TSource, TInstance, TSettings>.TryAcquire Method

[This is preliminary documentation and is subject to change.]

Acquires an instance from the pool.

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public virtual bool TryAcquire(
	out TInstance instance
)

Parameters

instance
Type: TInstance
When this method returns, contains the instance from the pool, if one could be acquired; otherwise, null. This parameter is passed uninitialised.

Return Value

Type: Boolean
true if an instance was acquired from the pool; otherwise, false.

Implements

IObjectPool<T>.TryAcquire(T)
See Also