Show / Hide Table of Contents

Interface IObjectPoolNew<T>

Interface for object pools with a "new" operator.

Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public interface IObjectPoolNew<T>
    where T : class
Type Parameters
Name Description
T

Type of the elements stored in the pool.

Remarks

This interface can be used to restrict pool usage to the RAII pattern.

Methods

New()

Gets a pooled object instance with RAII capabilities to return it to the pool.

Declaration
PooledObject<T> New()
Returns
Type Description
PooledObject<T>

Pooled object instance.

In This Article
Back to top Generated by DocFX