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

API Browser

Method

GetElementType

abstract virtual func GetElementType() -> Optional<TypeInfo>

Declaring type: TypeInfo
Module: System.Introspection
Assembly: System.Runtime.dll
Source file: Descriptors.rvn

Defined by TypeInfo.GetElementType · Required implementation (no default).

Interface implementation: Required implementation (no default).

Gets the element of an array, pointer or reference shape.

Return value

Optional<TypeInfo>

Some element descriptor, or None when the type has no element.