The operations on MonoClass*
allow you to
query a number of properties of a .NET class from the C API.
This page contains information for how to obtain a MonoClass*, how to probe for different features of a MonoClass* and APIs to access class members and access fields. To access methods, see the method documentation API.
You typically would obtain a MonoClass*
pointer by using a combination of the MonoImage*
where the type is located, the namespace and name using the
mono_class_from_name
or
the mono_class_from_name_case
APIs or by using
the mono_class_from_typeref
or mono_class_from_typeref_checked
methods.
For low-level access, you can get the MonoClass
*
from an image and an ECMA type token relative to
the MonoImage*
by using mono_class_get.