Commit 8420dae 1 parent cbd402b commit 8420dae Copy full SHA for 8420dae
File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1521,9 +1521,15 @@ bool SystemDomain::IsReflectionInvocationMethod(MethodDesc* pMeth)
1521
1521
}
1522
1522
CONTRACTL_END;
1523
1523
1524
- MethodTable* pCaller = pMeth->GetMethodTable ();
1524
+ // Check for dynamically generated Invoke methods.
1525
+ if (pMeth->IsDynamicMethod ())
1526
+ {
1527
+ if (strncmp (pMeth->GetName (), " InvokeStub_" , ARRAY_SIZE (" InvokeStub_" ) - 1 ) == 0 )
1528
+ return true ;
1529
+ }
1525
1530
1526
- // All Reflection Invocation methods are defined in CoreLib
1531
+ // All other reflection invocation methods are defined in CoreLib.
1532
+ MethodTable* pCaller = pMeth->GetMethodTable ();
1527
1533
if (!pCaller->GetModule ()->IsSystem ())
1528
1534
return false ;
1529
1535
@@ -1579,13 +1585,6 @@ bool SystemDomain::IsReflectionInvocationMethod(MethodDesc* pMeth)
1579
1585
if (CoreLibBinder::GetExistingClass (reflectionInvocationTypes[i]) == pCaller)
1580
1586
return true ;
1581
1587
}
1582
-
1583
- // Check for dynamically generated Invoke methods.
1584
- if (pMeth->IsDynamicMethod ())
1585
- {
1586
- if (strncmp (pMeth->GetName (), " InvokeStub_" , ARRAY_SIZE (" InvokeStub_" ) - 1 ) == 0 )
1587
- return true ;
1588
- }
1589
1588
}
1590
1589
1591
1590
return false ;
You can’t perform that action at this time.
0 commit comments