* 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
if (names != null)
ReorderParameters (names, ref args, selected);
- if (selected != null && args != null && args.Length > 0)
+ if (selected != null) {
+ if (args == null)
+ args = new object [0];
+
AdjustArguments (selected, ref args);
+ }
return selected;
}
+ // probably belongs in ReorderArgumentArray
static void AdjustArguments (MethodBase selected, ref object [] args)
{
var parameters = selected.GetParameters ();
+2010-03-30 Jb Evain <jbevain@novell.com>
+
+ * Binder.cs (BindToMethod): fix the case where we bind to a method
+ with only one params parameter and that no args are given.
+
2010-03-30 Jb Evain <jbevain@novell.com>
* Binder.cs: when invoking a params method, pack the params