-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-System.Reflectiongood first issueIssue should be easy to implement, good for first-time contributorsIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
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
SomeMethodand you passedXof typeXTypewith valueXValueandYwith typeYType. These types do not match with whatSomeMethodexpects as its parametersAof typeATypeandBof typeBType.
Metadata
Metadata
Assignees
Labels
area-System.Reflectiongood first issueIssue should be easy to implement, good for first-time contributorsIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors