-/*
+/**
+ * \file
* Copyright 2016 Microsoft
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
/**
* mono_class_get_flags:
- * @klass: the MonoClass to act on
- *
- * Return the TypeAttributes flags of @klass.
- * See the TYPE_ATTRIBUTE_* definitions on tabledefs.h for the different values.
- *
- * Returns: The type flags
+ * \param klass the MonoClass to act on
+ * \returns the \c TypeAttributes flags of \p klass.
+ * See the \c TYPE_ATTRIBUTE_* definitions in \c tabledefs.h for the different values.
*/
guint32
mono_class_get_flags (MonoClass *klass)
prop->value = value;
mono_property_bag_add (&class->infrequent_data, prop);
}
+
+void
+mono_class_set_is_com_object (MonoClass *klass)
+{
+#ifndef DISABLE_COM
+ mono_loader_lock ();
+ klass->is_com_object = 1;
+ mono_loader_unlock ();
+#endif
+}
+
+MonoType*
+mono_class_gtd_get_canonical_inst (MonoClass *klass)
+{
+ g_assert (mono_class_is_gtd (klass));
+ return &((MonoClassGtd*)klass)->canonical_inst;
+}