Allocate Uninitialized Array<T>(Int32, Boolean) Method
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.
Allocates an array while skipping zero-initialization, if possible.
public static T AllocateUninitializedArray<T> (int length, bool pinned = false);
static member AllocateUninitializedArray : int * bool -> 'T
Public Shared Function AllocateUninitializedArray(Of T) (length As Integer, Optional pinned As Boolean = false) As T()
Specifies the type of the array element.
Specifies the length of the array.
Specifies whether the allocated array must be pinned.
An array object with uninitialized memory except if it contains references or if it's too small for unpinned.
If pinned is set to
T must not be a reference type or a type that contains object references.