RaUI/Source/MyDb/Newtonsoft.Json/IArrayPool.cs
鑫Intel 83d0e095d5 ### 2021-09-12更新
------
#### ryControls    V3.0.2109.1201
- *.[改进]ObjectListView控件的AspectToStringConverter函数新增行数据参数。
- *.[改进]ObjectListView控件的行高默认到25像素。
- *.[改进]ObjectListView控件默认行选择而不是列选择。
- *.[改进]ObjectListView控件新增大量中文注释。
- *.[改进]ObjectListView控件的ShowGroups属性默认值为false。
2021-09-12 14:54:38 +08:00

22 lines
853 B
C#

namespace Newtonsoft.Json
{
/// <summary>
/// Provides an interface for using pooled arrays.
/// </summary>
/// <typeparam name="T">The array type content.</typeparam>
public interface IArrayPool<T>
{
/// <summary>
/// Rent an array from the pool. This array must be returned when it is no longer needed.
/// </summary>
/// <param name="minimumLength">The minimum required length of the array. The returned array may be longer.</param>
/// <returns>The rented array from the pool. This array must be returned when it is no longer needed.</returns>
T[] Rent(int minimumLength);
/// <summary>
/// Return an array to the pool.
/// </summary>
/// <param name="array">The array that is being returned.</param>
void Return(T[]? array);
}
}