PooledBatch record¶
Attributes: [DebuggerDisplay("PooledBatch: {_isDisposed}")]
Defined in
Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.PooledBatch<T> Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Represents a batch of items obtained from an array pool, along with the number of valid items in the batch.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class PooledBatch~T~
class IDisposable {
<>
}
IDisposable <|.. PooledBatch~T~
class IEquatable~PooledBatch~T~~ {
<>
}
IEquatable~PooledBatch~T~~ <|.. PooledBatch~T~
Implements: IDisposable (opens in a new tab), IEquatable
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.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Represents a batch of items obtained from an array pool, along with the number of valid items in the batch. |
Properties¶
| Name | Summary |
|---|---|
| Items | The array of items provided by the array pool. Must not be null. |
| Count | The number of valid items in the batch. Must be between 0 and the length of the Items array, inclusive. |
| ReturnToPool | A value indicating whether Items should be returned to ArrayPool (opens in a new tab) when disposed. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Releases all resources used by the current instance. |
| ToString | Returns a string that represents the current object. |
| GetHashCode | Serves as the default hash function. |
| Equals | Determines whether the specified object is equal to the current object. |
| Deconstruct |
Operators¶
| Name | Summary |
|---|---|
| static op_Inequality | |
| static op_Equality |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)