mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 07:44:09 +02:00
Reflection fixes
This commit is contained in:
parent
93facda6b2
commit
64f8e54c05
2 changed files with 96 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue