PooledBatch(T[], int, bool) constructor¶
Defined in
Type: PooledBatchReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public PooledBatch(T[] Items, int Count, bool ReturnToPool = true)
View source (opens in a new tab)
Summary: Represents a batch of items obtained from an array pool, along with the number of valid items in the batch.
Parameters
| Name | Type | Description |
|---|---|---|
Items | T[] | The array of items provided by the array pool. Must not be null. |
Count | int (opens in a new tab) | The number of valid items in the batch. Must be between 0 and the length of the Items array, inclusive. |
ReturnToPool = true | bool (opens in a new tab) | A value indicating whether Items should be returned to ArrayPool (opens in a new tab) when disposed. |
Remarks
The underlying array is returned to the shared array pool when the batch is disposed. After calling Dispose, the contents of Items should not be accessed. This type is sealed and not intended for inheritance.