Table of Contents

Method Classify

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

Classify(Type, bool)

Classifies a type according to the ABI.
public TypeClassification Classify(Type type, bool isReturn)

Parameters

type Type
The type to classify.
isReturn bool
true if the classification is being done for a return value; false otherwise.

Returns

TypeClassification
The TypeClassification for the type.

Remarks

Prefer using this over the Classifier member.

This method does some preliminary universal classifications, to make it easier for ABI implementers. Notably, reference types, pointer types, and byref types are all implicitly classified as InRegister since they are always exactly one machine word. void is also automatically handled.