Skip to content

Commit b29f217

Browse files
authored
Fix dealing with array types when getting method parameters (#2444)
1 parent 7b14a58 commit b29f217

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/CLR/CorLib/corlib_native_System_Reflection_MethodBase.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ HRESULT Library_corlib_native_System_Reflection_MethodBase::GetParametersNative_
256256
hbObj = paraTypeHB.Dereference();
257257
hbObj->SetReflection(paramElement.m_cls);
258258

259+
// deal with array types
260+
if (paramElement.m_levels > 0)
261+
{
262+
hbObj->ReflectionData().m_levels = (CLR_UINT16)paramElement.m_levels;
263+
}
264+
259265
// move pointer to the next element
260266
paramInfoElement++;
261267
}

0 commit comments

Comments
 (0)