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.
Change-Id: Ie086bbb898ae2de8bd38b9f81422086e017a859e
* Binder.cs (SelectMethod): Exact matching must check
all entries because if two of them match, we must use
the slow path.
* Binder.cs (GetBetterMethod): Don't give generic method
definition special treatment.
Fixes#325306.
svn path=/trunk/mcs/; revision=155828
* Binder.cs (BindToMethod): fix the case where we bind to a method
with only one params parameter and that no args are given.
svn path=/trunk/mcs/; revision=154452
2010-03-30 Jb Evain <[email protected]>
* MonoType.cs: let the binder reorder arguments when invoking
params methods.
* Activator.cs (CreateInstance): use BindToMethod instead of
SelectMethod to make sure that params constructors are properly called.
Fixes#591877
in System.Reflection:
2010-03-30 Jb Evain <[email protected]>
* Binder.cs: when invoking a params method, pack the params
arguments before doing the actual invocation.
Fixes#591877
svn path=/trunk/mcs/; revision=154449
with byref arguments.
* Binder.cs: Only allow a type to match its byref version for
BindToMethod (and not for SelectMethod).
* TypeTest.cs: Enabled test that was failing due to regression.
svn path=/trunk/mcs/; revision=137753
* MonoType.cs, Binder.cs, MonoGenericClass.cs: For property reflection
we should strictly match the return type if available.
* TypeTest.cs: Add tests to verify strict return type matching of
property reflection.
svn path=/trunk/mcs/; revision=104695
* Binder.cs: Applied patch from Yves Bastide ([email protected]). Add
support for converting integers to enums. Fixes#380361.
svn path=/trunk/mcs/; revision=100862
* Binder.cs: Treat matches with different argument types as
ambiguous, too. Fixes#324998.
2007-11-05 Mark Probst <[email protected]>
* BinderTests.cs: Add test for bug #324998.
svn path=/trunk/mcs/; revision=88879
* Binder.cs: Applied patch from Mario A Chavez <[email protected]>. Add
support for binding to methods with ParamArray attribute. Fixes#336841.
svn path=/trunk/mcs/; revision=88521
* Binder.cs: The patch changes Binder.Default.GetBetterMethod to
prefer methods in subclasses if the arg types can't disambiguate
them.
Also fixes a typo in the CallingConventions comparison.
svn path=/trunk/mcs/; revision=73780
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
* Binder.cs: Use IsInstanceOfType instead of IsAssignableFrom
since GetType() may not return the correct type if the object is
a remoting proxy. This fixes bug #74933.
svn path=/trunk/mcs/; revision=44636
2005-02-12 Ben Maurer <[email protected]>
* Type.cs (GetProperty): Passing new Type [0] is different than
null. null means `I don't care how many types this has,' while new
Type [0] means `this must have 0 types.'
In System.Reflection:
2005-02-12 Ben Maurer <[email protected]>
* Binder.cs (SelectProperty): Use -1 as the dummy `I don't know
how many types' value.
svn path=/trunk/mcs/; revision=40537
* Binder.cs: don't crash when we have a 'null' argument Type array.
Allow it for non-value types. Fixed for both, methods and properties.
Closes bug #58846.
svn path=/trunk/mcs/; revision=28859