Parameters
Returnsklass:
the number of bytes an element of type klass uses when stored into an array.
Parameters
Returnsklass: a class
the size of the static class dataRemarks
Parameters
Returnsklass: the MonoClass to act on
the underlying type representation for an enumeration.
Parameters
Remarksimage: The MonoImage where the type is looked up in name_space: the type namespace name: the type short name. deprecated: use the _checked variant
Obtains a MonoClass with a given namespace and a given name which is located in the given MonoImage. The namespace and name lookups are case insensitive.
Parameters
Remarksimage: The MonoImage where the type is looked up in name_space: the type namespace name: the type short name.
Obtains a MonoClass with a given namespace and a given name which is located in the given MonoImage. To reference nested classes, use the "/" character as a separator. For example use "Foo/Bar" to reference the class Bar that is nested inside Foo, like this: "class Foo { class Bar {} }".
Parameters
Remarksklass: the MonoClass to act on
Parameters
Returnsklass: the MonoClass to act on
the element class of an array or an enumeration.
Parameters
Returnsklass: the MonoClass to act on
a MonoEvent* on each invocation, or NULL when no more are available.Remarks
This routine is an iterator routine for retrieving the properties in a class. You must pass a gpointer that points to zero and is treated as an opaque handle to iterate over all of the elements. When no more values are available, the return value is NULL.
Parameters
Returnsklass: the class to lookup the field. name: the field name
the MonoClassField pointer of the named field or NULLRemarks
Search the class klass and it's parents for a field with the name name.
Parameters
Returnsclass: the class to lookup the field. field_token: the field token
A MonoClassField representing the type and offset of the field, or a NULL value if the field does not belong to this class.
Parameters
Returnsklass: the MonoClass to act on
a MonoClassField* on each iteration, or NULL when no more fields are available.Remarks
This routine is an iterator routine for retrieving the fields in a class. You must pass a gpointer that points to zero and is treated as an opaque handle to iterate over all of the elements. When no more values are available, the return value is NULL.
Parameters
Returnsfield: the field we need the token of
the token representing the field in the image it was loaded from.Remarks
Get the token of a field. Note that the tokesn is only valid for the image the field was loaded from. Don't use this function for fields in dynamic types.
Parameters
Returnsklass: the MonoClass to act on
the flags from the TypeDef table.Remarks
The type flags from the TypeDef table from the metadata. see the TYPE_ATTRIBUTE_* definitions on tabledefs.h for the different values.
Parameters
Returnsimage: the image where the class resides type_token: the token for the class context: the generic context used to evaluate generic instantiations in deprecated: Functions that expose MonoGenericContext are going away in mono 4.0
the MonoClass that represents type_token in image
Parameters
Returnsklass: the MonoClass to act on
a Monoclass* on each invocation, or NULL when no more are available.Remarks
This routine is an iterator routine for retrieving the interfaces implemented by this class. You must pass a gpointer that points to zero and is treated as an opaque handle to iterate over all of the elements. When no more values are available, the return value is NULL.
Parameters
Remarksklass: where to look for the method name: name of the method param_count: number of parameters. -1 for any number.
Obtains a MonoMethod with a given name and number of parameters. It only works if there are no multiple signatures for any given method name.
Parameters
Returnsklass: the MonoClass to act on
a MonoMethod on each iteration or NULL when no more methods are available.Remarks
This routine is an iterator routine for retrieving the fields in a class. You must pass a gpointer that points to zero and is treated as an opaque handle to iterate over all of the elements. When no more values are available, the return value is NULL.
Parameters
Returnsklass: the MonoClass to act on
the name of the class.
Parameters
Returnsklass: the MonoClass to act on
the namespace of the class.
Parameters
Returnsklass: the MonoClass to act on
a Monoclass* on each invocation, or NULL when no more are available.Remarks
This routine is an iterator routine for retrieving the nested types of a class. This works only if klass is non-generic, or a generic type definition. You must pass a gpointer that points to zero and is treated as an opaque handle to iterate over all of the elements. When no more values are available, the return value is NULL.
Parameters
Returnsklass: the MonoClass to act on
the parent class for this class.
Parameters
Returnsklass: the MonoClass to act on
a MonoProperty* on each invocation, or NULL when no more are available.Remarks
This routine is an iterator routine for retrieving the properties in a class. You must pass a gpointer that points to zero and is treated as an opaque handle to iterate over all of the elements. When no more values are available, the return value is NULL.
Parameters
Returnsklass: the MonoClass to act on
the rank for the array (the number of dimensions).
Parameters
Returnsklass: the MonoClass to act on
the MonoType from the class.Remarks
This method returns the internal Type representation for the class.
Parameters
Remarksclass: the class to initialize
Compute the instance_size, class_size and other infos that cannot be computed at mono_class_get() time. Also compute vtable_size if possible. Returns TRUE on success or FALSE if there was a problem in loading the type (incorrect assemblies, missing assemblies, methods, etc). LOCKING: Acquires the loader lock.
Parameters
Returnsklass: a class
the size of an object instanceRemarks
Parameters
Returnsklass: the class to be assigned to oklass: the source class
true if an instance of object oklass can be assigned to an instance of object klass
Parameters
Returnsklass: the MonoClass to act on
true if the MonoClass represents an enumeration.
Parameters
Remarksklass: class to probe if it is a subclass of another one klassc: the class we suspect is the base class check_interfaces: whether we should perform interface checks
This method determines whether klass is a subclass of klassc. If the check_interfaces flag is set, then if klassc is an interface this method return true if the klass implements the interface or if klass is an interface, if one of its base classes is klass. If check_interfaces is false then, then if klass is not an interface then it returns true if the klass is a subclass of klassc. if klass is an interface and klassc is System.Object, then this function return true.
Parameters
Returnsklass: the MonoClass to act on
true if the MonoClass represents a ValueType.
Parameters
Returnsklass: a class
minimm alignment requirementsRemarks
Parameters
Returnsklass: the MonoClass to act on
the number of events in the class.
Parameters
Returnsklass: the MonoClass to act on
the number of static and instance fields in the class.
Parameters
Returnsklass: the MonoClass to act on
the number of methods in the class.
Parameters
Returnsklass: the MonoClass to act on
the number of properties in the class.
Parameters
Returnsklass: a class
the size of a value of kind klassRemarks
This function is used for value types, and return the space and the alignment to store that kind of value object.
Parameters
Remarksdomain: the application domain class: the class to initialize
VTables are domain specific because we create domain specific code, and they contain the domain specific static class data. On failure, NULL is returned, and class->exception_type is set.
Parameters
Remarksklass: where to look for the method name_space: name of the method param_count: number of parameters. -1 for any number. flags: flags which must be set in the method
Obtains a MonoMethod with a given name and number of parameters. It only works if there are no multiple signatures for any given method name.