Get

Get()

public static TCollection Get() ;

Description

Fetch an instance from the pool.

Returns

The retrieved instance.

Get(out TCollection)

public static PooledObject<TCollection> Get(out TCollection value) ;

Description

Fetch an instance from the pool and return aPooledObject<T>.

Parameters

Parameter Name Description
value The retrieved instance.

Returns

PooledObject<T>

Remarks

By usingPooledObject<T>in the using statement, it will be returned to the pool when it goes out of scope.