Partilhar via


ReusableArray<T>(Boolean, Int32) Constructor

Definition

Creates a new reusable array.

 ReusableArray(bool requiresExactSize, int maximumCacheArrayLength = 2147483647);
public ReusableArray (bool requiresExactSize, int maximumCacheArrayLength = 2147483647);
new Microsoft.VisualStudio.Utilities.ReusableArray<'T> : bool * int -> Microsoft.VisualStudio.Utilities.ReusableArray<'T>
Public Sub New (requiresExactSize As Boolean, Optional maximumCacheArrayLength As Integer = 2147483647)

Parameters

requiresExactSize
Boolean

True if the array returned from Acquire must have an exactly-matching length, false if the array returned from Acquire can have any equal or longer length than the length requested.

maximumCacheArrayLength
Int32

The maximum length of array that should be cached when returning arrays to the resource store.

Applies to