[Mono-bugs] [Bug 664205] TargetParameterCountExeption on DynamicInvoke.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Apr 18 09:16:03 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=664205
https://bugzilla.novell.com/show_bug.cgi?id=664205#c2
Jb Evain <jbevain at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Sys.Core |CORLIB
Version|2.8.x |SVN
AssignedTo|jbevain at novell.com |mono-bugs at lists.ximian.com
Summary|Delegates created from |TargetParameterCountExeptio
|nested lambda expressions |n on DynamicInvoke.
|sometimes have no target |
--- Comment #2 from Jb Evain <jbevain at novell.com> 2011-04-18 13:16:02 UTC ---
Repro that doesn't depend on the DLR implementation:
<<<<<<<<<<<<<<<<<<<<<<<<
using System;
using System.Reflection.Emit;
class Program {
static void Main ()
{
var method = new DynamicMethod ("test", typeof (int), new [] { typeof
(Program) }, true);
var il = method.GetILGenerator ();
il.Emit (OpCodes.Ldc_I4, 42);
il.Emit (OpCodes.Ret);
var @delegate = method.CreateDelegate (typeof (Func<int>), null);
Console.WriteLine (@delegate.DynamicInvoke ());
}
}
<<<<<<<<<<<<<<<<<<<<<<<<
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list