IObjectPool

Description

interface Tinman.Core.System.IObjectPool
<TObject ref>
<TKind in val : IEquatable<TKind>>

Derived from

IObjectPoolBase

Extended by

ObjectPool sealed
SimpleObjectPool sealed

Generic base interface for classes that perform memory pooling of objects.

See also

ObjectPoolUtil

Public / Methods

Get


[OwnerReturn]
public method Get → (1)

kind opt : TKind = default(TKind)

The kind of the object to fetch.

returns → TObject

The pooled object.

Fetches a pooled object.

Put


public method Put → (1)

obj in : TObject own

[not-null]
The pooled object to put back.

Puts the given pooled object back.