Commit Graph
40 Commits
Author SHA1 Message Date
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 a7e976e2a7 2007-11-01 Zoltan Varga <[email protected]>
* Binder.cs: Avoid returning a method with a ParamArray attribute when a normal
	method exists. Fixes #338266.

svn path=/trunk/mcs/; revision=88661
2007-11-01 16:31:45 +00:00
Zoltan Varga 16fbfc464f 2007-10-30 Zoltan Varga <[email protected]>
* 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
2007-10-30 22:08:59 +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
Miguel de Icaza 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14:01 +00:00
Zoltan Varga ad48d1828f 2006-09-02 Zoltan Varga <[email protected]>
* Binder.cs (ReorderParameters): Really fix this.

svn path=/trunk/mcs/; revision=64761
2006-09-02 09:51:15 +00:00
Zoltan Varga 226583c4dc 2006-09-02 Zoltan Varga <[email protected]>
* Binder.cs (ReorderParameters): Fix this method. Fixes #79120.

svn path=/trunk/mcs/; revision=64760
2006-09-02 09:31:38 +00:00
Zoltan Varga 0b0effd8ca 2006-07-09 Zoltan Varga <[email protected]>
* Binder.cs: Add back the support for BindingFlags.ExactBinding. Fixes #78592.

svn path=/trunk/mcs/; revision=62374
2006-07-09 09:12:01 +00:00
Zoltan Varga 0a14610ce6 2006-06-30 Zoltan Varga <[email protected]>
* Binder.cs: Comment out the ExactBinding stuff for the release as it breaks some 
	gtk# apps.

svn path=/trunk/mcs/; revision=62158
2006-06-30 16:12:04 +00:00
Zoltan Varga 44e824256b 2006-06-07 Zoltan Varga <[email protected]>
* Binder.cs: Add support for BindingFlags.ExactBinding. Fixes #78592.

svn path=/trunk/mcs/; revision=61507
2006-06-06 22:14:41 +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
Zoltan Varga 6cfdbc3661 2006-03-12 Zoltan Varga <[email protected]>
* Binder.cs: Applied patch from Ben to fix #74947.

svn path=/trunk/mcs/; revision=57876
2006-03-12 18:32:10 +00:00
Gonzalo Paniagua Javier 1d741e9b4d 2005-06-15 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs: null is ok for a value type. Fixes bug #75241.


svn path=/trunk/mcs/; revision=46014
2005-06-15 06:34:10 +00:00
Zoltan Varga 601f4125e5 2005-06-06 Zoltan Varga <[email protected]>
* *.cs: Add net 2.0 ComVisibleAttribute.

svn path=/trunk/mcs/; revision=45510
2005-06-06 18:03:29 +00:00
Ben Maurer 345688cd9f 2005-05-26 Ben Maurer <[email protected]>
* Binder.cs: Avoid double checked locking and lock on typeof by
	doing init of the default binder in the cctor.


svn path=/trunk/mcs/; revision=45080
2005-05-26 20:24:30 +00:00
Lluis Sanchez d21b93593c 2005-05-17 Lluis Sanchez Gual <[email protected]>
* 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-05-17 17:51:57 +00:00
Zoltan Varga 516b4d917a 2005-03-30 Zoltan Varga <[email protected]>
* Binder.cs (check_type): Fix byref support. Fixes #73972.

svn path=/trunk/mcs/; revision=42381
2005-03-30 18:51:23 +00:00
Ben Maurer 5539d0949a In System:
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
2005-02-12 16:38:56 +00:00
Miguel de Icaza 47b0eb88e5 Another bug fix from Kazuki, fixes bug: 71297
svn path=/trunk/mcs/; revision=39822
2005-01-31 06:06:57 +00:00
Zoltan Varga abfc5b1acf 2004-11-05 Zoltan Varga <[email protected]>
* Binder.cs: Add support for byref types. Fixes #69140.

svn path=/trunk/mcs/; revision=35710
2004-11-05 17:56:43 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Gonzalo Paniagua Javier ceb2d47dbb 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
* 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
2004-06-05 06:36:12 +00:00
Gonzalo Paniagua Javier 8342f74320 2004-06-02 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs: default score must be lower than fail_score or we'll get
	an ambiguous match when no indexers given and one single match is found.

svn path=/trunk/mcs/; revision=28698
2004-06-02 14:30:56 +00:00
Gonzalo Paniagua Javier ea81552b3f 2004-06-02 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs: removed ^Ms. In case of several properties matching, try
	to disambiguate based on the indexer types provider and the conversions
	from those into the ones of the property.

svn path=/trunk/mcs/; revision=28670
2004-06-02 02:49:29 +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
Gonzalo Paniagua Javier 555444c023 2004-02-24 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs:
	(SelectProperty): check the return Type if provided.

svn path=/trunk/mcs/; revision=23385
2004-02-23 23:13:58 +00:00
Patrik Torstensson 4d51d3af46 2003-12-08 Patrik Torstensson <[email protected]>
* Binder.cs: Added internal helpers to get derived level and select the
	most derived methodbase (used in GetMethodImpl)

svn path=/trunk/mcs/; revision=20873
2003-12-08 14:43:14 +00:00
Zoltan Varga 936de0894a 2003-11-14 Zoltan Varga <[email protected]>
* AssemblyNameFlags.cs MethodAttributes.cs: Add new enumerated values
	from NET 1.1.

	* *.cs: Add missing attributes.

svn path=/trunk/mcs/; revision=19997
2003-11-14 16:20:02 +00:00
Miguel de Icaza 94620f56f6 2003-05-11 Miguel de Icaza <[email protected]>
* Binder.cs (ChangeType): Very simplistic change.  Am not sure if
	it is correct, but it makes RemotingCorba move along a bit more
	(Remoting.Corba invokes Binder.ConvertArgs, which calls
	Binder.ChangeType with an Attribute [] to Object []).

svn path=/trunk/mcs/; revision=14482
2003-05-11 05:51:07 +00:00
Gonzalo Paniagua Javier 4b2478eb6b 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs:
	(check_type): fixed bug #41655.

svn path=/trunk/mcs/; revision=14433
2003-05-10 02:28:49 +00:00
Gonzalo Paniagua Javier f423cb7491 oops.
svn path=/trunk/mcs/; revision=11215
2003-02-04 20:31:56 +00:00
Gonzalo Paniagua Javier f023ea9bdd 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs:
	(check_type): return true when the target type is object and the source
	is a value type.

svn path=/trunk/mcs/; revision=11214
2003-02-04 20:26:22 +00:00
Patrik Torstensson 6ba0618bd1 2003-02-03 Patrik Torstensson
* Binder.cs: minimize locking time in DefaultBinder.

svn path=/trunk/mcs/; revision=11154
2003-02-03 09:55:49 +00:00
Paolo Molaro efc8e8c584 Sat Jan 4 18:04:07 CET 2003 Paolo Molaro <[email protected]>
* Binder.cs: throw an exception if the number of arguments
	when invoking a method is incorrect.

svn path=/trunk/mcs/; revision=10141
2003-01-04 17:07:05 +00:00
Paolo Molaro 9df0d00487 Thu Jan 2 19:04:58 CET 2003 Paolo Molaro <[email protected]>
* Binder.cs: In SelectMethod() look for an exact match first.

svn path=/trunk/mcs/; revision=10061
2003-01-02 18:07:42 +00:00
Paolo Molaro cf3b279815 Wed Sep 11 12:49:51 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs, Type.cs: implemented InvokeMember.


Wed Sep 11 12:50:54 CEST 2002 Paolo Molaro <[email protected]>

	* Binder.cs: more default binder implementation.
	* FieldInfo.cs, MonoField.cs: fixed SetValue () implementation.
	* MonoMethod.cs: use the binder in the Invoke () implementation.
	Implemented custom attributes methods and ToString for constructors.

svn path=/trunk/mcs/; revision=7355
2002-09-11 10:57:34 +00:00
Paolo Molaro d5aa1a82fd Thu Sep 5 20:36:27 CEST 2002 Paolo Molaro <[email protected]>
* Binder.cs: finished the Binder class and implemented the default
	binder.

svn path=/trunk/mcs/; revision=7269
2002-09-05 18:38:31 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Sean MacIsaac fc1bf781fa Added stub classes/methods needed by compiler in an attempt to get it
to run in Linux.

svn path=/trunk/mcs/; revision=1171
2001-10-17 03:54:01 +00:00