mono/mono — pull request #303 by ermshiperete (2012-05-25 10:32:33+00:00)
Title: Xamarin-5278: Fix Binder.SelectMethod when passed argument is COM object

This patch fixes the problem that reflection doesn't find the constructor of a class if one of the arguments is a COM object implemented in unmanaged code. In that case the proxy can't be converted to a managed object and we didn't check if the COM object implements the desired interface.

It probably would be better (but much harder to get it right) to fix this in the C++ code that deals with COM objects, but this is the easiest thing that works.