Click or drag to resize

JCOBridgeObjectPoolTReturn Method

Returns a previously rented instance to the pool for reuse.

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public bool Return(
	T obj
)

Parameters

obj  T
The instance to return. Must have been obtained via Rent(Boolean).

Return Value

Boolean
if the instance in obj was returned to the pool, otherwise. Under a standard license the return value is always .
Remarks
The caller is responsible for resetting the instance's state before returning it, to avoid leaking state between consumers. Instances returned beyond the configured capacity are silently discarded. Under a standard license this method is a no-op and the instance is left for the GC.
See Also