<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />

IArrayPool<T>

public interface IArrayPool<T>
Provides an interface for using pooled arrays.
T[] Rent(int minimumLength)

Rent an array from the pool. This array must be returned when it is no longer needed.

void Return(T[] array)

Return an array to the pool.