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

API Browser

Method

GetType

func GetType() -> TypeInfo

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

Returns metadata for the concrete runtime type of this instance.

Return value

TypeInfo

The concrete type descriptor, preserving the type through supported base and interface views.

Remarks

Implemented for supported class references, arrays, strings and boxed values. A null receiver raises a terminal NullReference fault. This operation does not change value/reference semantics.