Wrap exceptions in reflection virtual method resolution (#81682)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Mon, 6 Feb 2023 16:55:51 +0000 (01:55 +0900)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 16:55:51 +0000 (08:55 -0800)
commit7941c5459d90f021f1b128f6debc0e7814856e85
tree9df37caeb0b38ce06f1eec7d7ffe09ec9426c067
parent167112574ebfcfcddfc23267e1ba93eebdcdeaf1
Wrap exceptions in reflection virtual method resolution (#81682)

* Wrap exceptions in reflection virtual method resolution

Fixes the reflection\DefaultInterfaceMethods\InvokeConsumer.cs test that expects EntryPointNotFound to be wrapped.

* Update VirtualMethodInvoker.cs
src/coreclr/nativeaot/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/MethodInvokers/VirtualMethodInvoker.cs