We're updating the issue view to help you get more done. 

Align MemberSelector.SelectSingleMethod with original reflection behavior

Description

Consider the following example

typeof (B).GetMethod ("M") returns [B.M] and does NOT throw an AmbiguousMatchException like our implementation.

typeof (B).GetMethods(): [B.M, A.M]
typeof (B).GetProperty(): [B.P]

typeof (B).GetMethod ("M") and typeof (B).GetProperty ("M") do NOT throw AmbiguousMatchExceptions (when hiding with new keyword)

However considering the next example ...

For this example typeof (B).GetMethod ("M") throws an AmbiguousMatchException.

ALSO:
GetMethods never throws an ambiguous match exception when match is just ambiguous of base methods?!

Assignee

Unassigned

Reporter

User known

Labels

None

Components

Fix versions

Priority

Normal
Configure