Closed
Description
When we invoke a method via reflection, in case something goes wrong with type matching we get this error:
Object does not match target type.
This is a very poor message for debugging. Please give us more information. Something like:
You wanted to invoke
SomeMethod
and you passedX
of typeXType
with valueXValue
andY
with typeYType
. These types do not match with whatSomeMethod
expects as its parametersA
of typeAType
andB
of typeBType
.