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

API Browser

Method

GetValue

static func GetValue(array: object, index: int) -> object?

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

Reads an element, boxing scalar values and preserving reference identity.

Parameters

Name Type Description
array Object A non-null managed vector.
index Int32 A zero-based index within the array.

Return value

Object?

The boxed value, original reference or null.