1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed reflecting Invoke for delegate/function

This commit is contained in:
Brian Fiete 2023-12-25 07:07:32 -05:00
parent 9d72043a71
commit b98f1ea6a4
3 changed files with 8 additions and 0 deletions

View file

@ -7299,6 +7299,9 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
bool includeMethod = reflectIncludeAllMethods;
if (typeInstance->IsDelegateOrFunction())
includeMethod = true;
BfMethodCustomAttributes* methodCustomAttributes = NULL;
if ((defaultMethod->mMethodInfoEx != NULL) && (defaultMethod->mMethodInfoEx->mMethodCustomAttributes != NULL) && (defaultMethod->mMethodInfoEx->mMethodCustomAttributes->mCustomAttributes != NULL))
{