1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 07:44:09 +02:00

Reflection fixes

This commit is contained in:
Brian Fiete 2020-05-01 09:10:24 -07:00
parent 93facda6b2
commit 64f8e54c05
2 changed files with 96 additions and 1 deletions

View file

@ -12,6 +12,14 @@ namespace System.Reflection
TypeInstance mTypeInstance;
TypeInstance.MethodData* mMethodData;
public bool IsInitialized
{
get
{
return mMethodData != null;
}
}
public StringView Name
{
get
@ -157,7 +165,7 @@ namespace System.Reflection
if ((paramType.IsPrimitive) && (underlyingType.IsTypedPrimitive)) // Boxed primitive?
underlyingType = underlyingType.UnderlyingType;
if (argType.IsBoxedStructPtr)
if ((argType.IsBoxedStructPtr) || (argIdx == -1))
{
dataPtr = *(void**)dataPtr;
handled = true;