ReusableArray<T>(Boolean, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.