[Mono-bugs] [Bug 425345] Delegate serialization problem
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Sep 11 09:05:50 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=425345
User robertj at gmx.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=425345#c4
Robert Jordan <robertj at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |robertj at gmx.net
--- Comment #4 from Robert Jordan <robertj at gmx.net> 2008-09-11 07:05:49 MDT ---
A better test case:
using System;
class Test
{
static void Main ()
{
AppDomain domain = AppDomain.CreateDomain ("foo");
domain.DoCallBack (Public);
domain.DoCallBack (NonPublic);
domain.DoCallBack (delegate { Console.WriteLine ("Anonymous");
});
}
public static void Public ()
{
Console.WriteLine ("Public");
}
static void NonPublic ()
{
Console.WriteLine ("Private");
}
}
MS.NET 2.0 allows serialization of delegates of non public methods,
whereas Mono is blocking them like MS.NET 1.1 with a SerializationException.
--
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