diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2021-12-04 12:38:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 12:38:09 +0100 |
commit | 2a9dd654bc0197dd864df61b5b37e302022c2871 (patch) | |
tree | ce700ebd9d9b0b5eff5d4202ead4dae9e50bad18 /modules/mono/mono_gd/gd_mono_utils.cpp | |
parent | d394cbce994d41155f6a33b795c8f6c7af640c56 (diff) | |
parent | d28be4d5808947606b8189ae1b2900b8fd2925cf (diff) | |
download | redot-engine-2a9dd654bc0197dd864df61b5b37e302022c2871.tar.gz |
Merge pull request #55563 from raulsntos/csharp-delegates-for-generic-class
Fix C# `get_all_delegates` method for generic classes
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_utils.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_utils.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mono/mono_gd/gd_mono_utils.cpp b/modules/mono/mono_gd/gd_mono_utils.cpp index 09aa9ad948..505c637af9 100644 --- a/modules/mono/mono_gd/gd_mono_utils.cpp +++ b/modules/mono/mono_gd/gd_mono_utils.cpp @@ -614,6 +614,12 @@ bool type_is_generic_idictionary(MonoReflectionType *p_reftype) { return (bool)res; } +void get_generic_type_definition(MonoReflectionType *p_reftype, MonoReflectionType **r_generic_reftype) { + MonoException *exc = nullptr; + CACHED_METHOD_THUNK(MarshalUtils, GetGenericTypeDefinition).invoke(p_reftype, r_generic_reftype, &exc); + UNHANDLED_EXCEPTION(exc); +} + void array_get_element_type(MonoReflectionType *p_array_reftype, MonoReflectionType **r_elem_reftype) { MonoException *exc = nullptr; CACHED_METHOD_THUNK(MarshalUtils, ArrayGetElementType).invoke(p_array_reftype, r_elem_reftype, &exc); |