Skip to main content

Module element

Module element 

Source
Expand description

Managed element types (Il2CppTypeEnum).

Constantsยง

ARRAY
A multi-dimensional array, e.g. int[,].
BOOLEAN
bool.
CHAR
char, a UTF-16 code unit.
CLASS
A reference type other than string and object.
GENERICINST
A constructed generic type, e.g. List<int>.
I
nint (System.IntPtr).
I1
sbyte.
I2
short.
I4
int.
I8
long.
MVAR
A type parameter of a generic method, e.g. T in Get<T>().
OBJECT
object (System.Object).
PTR
An unmanaged pointer, e.g. int*.
R4
float.
R8
double.
STRING
string (System.String).
SZARRAY
A single-dimensional, zero-based array, e.g. int[].
U
nuint (System.UIntPtr).
U1
byte.
U2
ushort.
U4
uint.
U8
ulong.
VALUETYPE
A struct or enum (enums are reported by their underlying integer in TypeInfo::element).
VAR
A type parameter of the enclosing generic class, e.g. T in List<T>.
VOID
void, only as a return type.