Commit Graph
36 Commits
Author SHA1 Message Date
Marek Safar 5c55eea17e Basic optional parameters support in binder. Fixes #13817 2013-08-08 13:31:08 +02:00
Marek Safar 80d342ff75 Add test from Jb Evain to test biner with user method types 2013-03-06 11:18:04 +01:00
Marek Safar 7950d8b97d Update binder primitive conversion to match .net 2013-03-05 15:03:38 +01:00
Marek Safar 02e0ddfe44 Expand params arguments only when not binding directly parameter types. Fixes #10551 2013-02-25 14:11:03 +01:00
Zoltan Varga 1c866f2830 Fix named parameter support in the Binder. Fixes #1321 2011-10-08 06:29:22 +02:00
Marek Habersack 805da076e0 [reflection] Default binder's AdjustArguments method treats ParamArray parameters which are already arrays properly
Such parameters are not adjusted as it would lead to an InvalidCastException whenever an attempt to set an array
index's value would be made.
2011-02-03 02:22:31 +01:00
Jb Evain c6cab1a6ca Ignor test since its fix has been reverted 2010-09-20 17:12:04 +02:00
Jb Evain b420eced14 Add test for #636939 2010-09-10 16:18:47 +02:00
Rodrigo Kumpera d4241184ec 2010-04-20 Rodrigo Kumpera <[email protected]>
* BinderTest.cs: Add tests for #325306.

svn path=/trunk/mcs/; revision=155829
2010-04-20 17:34:39 +00:00
Gert Driesen 3b86dc3ee4 * BinderTests.cs: Modified SelectMethod_ByRef and BindToMethod_ByRef
to compile on net_1_1 profile. Added tests for SelectMethod and
BindToMethod with params arguments, currently marked NotWorking.

svn path=/trunk/mcs/; revision=138186
2009-07-19 15:08:43 +00:00
Raja R Harinath 973dd2725e * BinderTests.cs (SelectMethod_ByRef, BindToMethod_ByRef): Disable
in net_1_1 profile.

svn path=/trunk/mcs/; revision=137883
2009-07-14 17:59:13 +00:00
Gert Driesen 79490f1be9 * BinderTest.cs: Added SelectMethod/BindToMethod tests for methods
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
2009-07-12 13:21:19 +00:00
Gonzalo Paniagua Javier c91a6cee78 Patch from Matthew Metnestsky
svn path=/trunk/mcs/; revision=130076
2009-03-23 17:36:28 +00:00
Zoltan Varga 2ac318ebfe 2009-03-11 Zoltan Varga <[email protected]>
* BinderTests.cs: Add a test for #484294.

svn path=/trunk/mcs/; revision=129070
2009-03-11 15:14:36 +00:00
Jb Evain 178a9e40bf 2009-02-21 Jb Evain <[email protected]>
* BinderTests.cs: add test for bug #471257, where Type.InvokeMember
	calls Binder.BindToMethod will a null args.


svn path=/trunk/mcs/; revision=127627
2009-02-21 15:30:22 +00:00
Zoltan Varga a2e7744c3b 2008-04-16 Zoltan Varga <[email protected]>
* BinderTests.cs: Applied patch from Yves Bastide ([email protected]). Add 
	tests for converting integers to enums.

svn path=/trunk/mcs/; revision=100864
2008-04-16 12:53:54 +00:00
Zoltan Varga 3c4320dfea 2008-03-14 Zoltan Varga <[email protected]>
* BinderTests.cs: Add tests for #367655.

svn path=/trunk/mcs/; revision=98265
2008-03-14 12:02:08 +00:00
Mark Probst 1a313377dc 2007-11-05 Mark Probst <[email protected]>
* 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
2007-11-05 16:03:42 +00:00
Zoltan Varga 1c950f74d7 2007-11-01 Zoltan Varga <[email protected]>
* BinderTests.cs: Add a test for the ParamArray attribute.

svn path=/trunk/mcs/; revision=88662
2007-11-01 16:32:19 +00:00
Miguel de Icaza 503b6175e1 2007-03-05 Peter Dettman <[email protected]>
* 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
2007-03-06 04:46:30 +00:00
Zoltan Varga 78124de241 2006-06-07 Zoltan Varga <[email protected]>
* BinderTests.cs: Add test for BindingFlags.ExactBinding.

svn path=/trunk/mcs/; revision=61508
2006-06-06 22:15:15 +00:00
Atsushi Eno 8d3b5e6758 2006-05-09 Atsushi Enomoto <[email protected]>
* BinderTests.cs : (BindToMethodNamedArgs) hmm, why it didn't
          show up during my last test run...


svn path=/trunk/mcs/; revision=60431
2006-05-09 05:25:27 +00:00
Atsushi Eno da0ad715cb 2006-05-08 Atsushi Enomoto <[email protected]>
* BinderTests.cs : added test for bug #77079.


svn path=/trunk/mcs/; revision=60410
2006-05-08 15:19:45 +00:00
Atsushi Eno 4ad3d6bf02 2006-05-08 Atsushi Enomoto <[email protected]>
* Binder.cs : (Default.SelectMethod)
	  don't throw AmbiguousMatchException when one of conflicting method
	  matches weakly. Fixed bug #42547.

	* BinderTests.cs : added test for bug #42547.


svn path=/trunk/mcs/; revision=60409
2006-05-08 15:10:13 +00:00
Atsushi Eno 990d7f119d 2006-05-08 Atsushi Enomoto <[email protected]>
* Binder.cs : (DefaultBinder.BindToMethod) reorder parameters based
	  on namedParameters. Fixed bug #41691.

	* BinderTests.cs : added test for bug #41691.


svn path=/trunk/mcs/; revision=60408
2006-05-08 14:45:08 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Miguel de Icaza bb2c720930 Add test attribute, thanks Hari
svn path=/trunk/mcs/; revision=39863
2005-01-31 18:46:27 +00:00
Miguel de Icaza da280fd13a Fix
svn path=/trunk/mcs/; revision=39825
2005-01-31 06:08:42 +00:00
Miguel de Icaza 2cf1bf32c5 Update test, Kazuki fixed 71297
svn path=/trunk/mcs/; revision=39823
2005-01-31 06:07:43 +00:00
Miguel de Icaza fcf6291ca9 More Improvements
svn path=/trunk/mcs/; revision=38968
2005-01-14 23:04:09 +00:00
Nick Drochak 0c5afd7270 2004-08-29 Nick Drochak <[email protected]>
* BinderTests.cs: Make tests pass on MS.NET 1.1.

svn path=/trunk/mcs/; revision=32977
2004-08-29 04:18:05 +00:00
Gonzalo Paniagua Javier ed4e55f405 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
* BinderTests.cs: added test for null type in the argument list.

svn path=/trunk/mcs/; revision=28858
2004-06-05 06:31:53 +00:00
Gonzalo Paniagua Javier f44b83ff48 2004-06-02 Gonzalo Paniagua Javier <[email protected]>
* BinderTests.cs: one more test for matching a single property. Adapted
	to nunit 2.2 style.

svn path=/trunk/mcs/; revision=28697
2004-06-02 14:29:09 +00:00
Gonzalo Paniagua Javier b9d4b51646 missing 3 comments
svn path=/trunk/mcs/; revision=28671
2004-06-02 02:59:21 +00:00
Gonzalo Paniagua Javier 48c23a3d48 2004-06-02 Gonzalo Paniagua Javier <[email protected]>
* BinderTests.cs: added more indexers and more SelectProperty tests.

svn path=/trunk/mcs/; revision=28669
2004-06-02 02:43:05 +00:00
Gonzalo Paniagua Javier c6406894fb 2004-05-13 Gonzalo Paniagua Javier <[email protected]>
* corlib_test.dll.sources: added BinderTests.cs
	* System.Reflection/Binder.cs: check for ambiguous matches in
	SelectMethod and SelectProperty. Fixes bug #58381
	* Test/System.Reflection/BinderTests.cs: New file.

svn path=/trunk/mcs/; revision=27199
2004-05-12 23:44:10 +00:00