ArrayPool Class (System.Buffers) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a resource pool that enables reusing instances of type T[].
generic <typename T>
public ref class ArrayPool abstract
public abstract class ArrayPool<T>
type ArrayPool<'T> = class
Public MustInherit Class ArrayPool(Of T)
Type Parameters
T
The type of the objects that are in the resource pool.
Inheritance
Remarks
Using the ArrayPool class to rent and return buffers (using the Rent and Return methods) can improve performance in situations where arrays are created and destroyed frequently, resulting in significant memory pressure on the garbage collector.
Applies to
Thread Safety
This class is thread-safe. All members may be used by multiple threads concurrently.