Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Create

static func Create(arrayType: TypeInfo, values: object?[]) -> object

Declaring type: ArrayReflection
Module: System.Runtime.Reflection
Assembly: System.Runtime.dll
Source file: ArrayReflection.rvn

Creates a managed vector of the runtime-backed array type and copies the supplied elements.

Parameters

Name Type Description
arrayType TypeInfo A runtime-backed vector type, such as typeof(int[]), not its element type.
values Object?[] Elements with exact boxed scalar types or compatible references.

Return value

Object

A new array; reference elements retain their identity.