[Mono-dev] Calling a generic function twice which calls DynamicInvoke throws exception

Bas Smit basjsmit at gmail.com
Mon Feb 9 12:41:51 EST 2009


Hi guys,

Im working on mono compatibility for the Moq framework. Two bugs are
currently preventing Moq from running under mono. One submitted Friday:
https://bugzilla.novell.com/show_bug.cgi?id=473482 , and one I submitted a
few moments ago ( details below ) :
https://bugzilla.novell.com/show_bug.cgi?id=473999

Regards, Bas


using System;

public class Program
{
    static void Main()
    {
        Test(""); // this one works.
        Test(""); // this one throws.
    }

    static public void Test<T>(T a)
    {
        Func<T> func = () => a;
        func.DynamicInvoke();
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090209/6c10924c/attachment-0001.html 


More information about the Mono-devel-list mailing list