[Mono-dev] [PATCH] MonoMethod.cs

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Fri Feb 27 18:02:57 EST 2009


On Fri, 2009-02-27 at 09:50 -0500, Matthew Metnetsky wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> To whom it may concern,
> 
> I was migrating some code from Mono 1.x to .NET 3.5 and came across a
> very small bug. I was calling MonoMethod.Invoke like so:
> 
> MethodInfo method = type.GetMethod("Foo"); // Foo(int i, string name);
> 
> method.Invoke(obj,
>               BindingFlags.ExactBinding,
>               new CustomerBinder(),
>               new object[]{"0", "one"},
>               null);

Could you also provide a NUnit test like the ones we have in
corlib/Test/System.Reflection/ for this case?

Thanks!

-Gonzalo




More information about the Mono-devel-list mailing list