Skip to content

Exception message for AmbiguousMatchException should include the name #18255

@bradwilson

Description

@bradwilson

Fundamentally, this is an indication of a bad argument, without telling you what the bad value is, which usually demands that you fire up the debugger to figure it out. It would be helpful to know what the ambiguous name actually was.

System.Reflection.AmbiguousMatchException : Ambiguous match found.
Stack Trace:
    at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
    at System.Type.GetMethod(String name)

Metadata

Metadata

Labels

area-System.ReflectionenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions