Table of Contents

Method IsStruct

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

IsStruct(TypeReference)

Determine if the given type is a struct (also known as "value type") or struct-alike (f.e. primitive).
public static bool IsStruct(this TypeReference type)

Parameters

type TypeReference
The type to check.

Returns

bool
True if the type is a struct, primitive or similar, false otherwise.