[reflection] Don't get parameter default values for wrapper methods (#45018)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 10 Dec 2020 21:06:15 +0000 (16:06 -0500)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 21:06:15 +0000 (16:06 -0500)
commit543cb488437ea0b05a58e3297214a0c9fb2064ea
tree313c8e45af2017a73207a58924736adfd1ed60f7
parenta03ab4393908c7cc910a7b68f44fdbfca48f8a68
[reflection] Don't get parameter default values for wrapper methods (#45018)

The lookup assumes that the method came from metadata, which is not the case
for wrappers.

Fixes mono/mono#20600

Co-authored-by: lambdageek <lambdageek@users.noreply.github.com>
src/mono/mono/metadata/reflection.c