From d28be4d5808947606b8189ae1b2900b8fd2925cf Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Thu, 2 Dec 2021 20:05:05 +0100 Subject: Fix get_all_delegates method for generic classes If the class is generic, we must get its generic type definition and use it to retrieve the delegates. --- modules/mono/mono_gd/gd_mono_utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/mono/mono_gd/gd_mono_utils.h') diff --git a/modules/mono/mono_gd/gd_mono_utils.h b/modules/mono/mono_gd/gd_mono_utils.h index 773501e93d..3162ef198d 100644 --- a/modules/mono/mono_gd/gd_mono_utils.h +++ b/modules/mono/mono_gd/gd_mono_utils.h @@ -62,6 +62,8 @@ bool type_is_generic_ienumerable(MonoReflectionType *p_reftype); bool type_is_generic_icollection(MonoReflectionType *p_reftype); bool type_is_generic_idictionary(MonoReflectionType *p_reftype); +void get_generic_type_definition(MonoReflectionType *p_reftype, MonoReflectionType **r_generic_reftype); + void array_get_element_type(MonoReflectionType *p_array_reftype, MonoReflectionType **r_elem_reftype); void dictionary_get_key_value_types(MonoReflectionType *p_dict_reftype, MonoReflectionType **r_key_reftype, MonoReflectionType **r_value_reftype); -- cgit v1.2.3