[Mono-bugs] [Bug 81563][Wis] New - Invoke cannot be called directly on a delegate(CS1533)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 8 12:47:55 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by wasabi at larvalstage.net.

http://bugzilla.ximian.com/show_bug.cgi?id=81563

--- shadow/81563	2007-05-08 12:47:55.000000000 -0400
+++ shadow/81563.tmp.3613	2007-05-08 12:47:55.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 81563
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: wasabi at larvalstage.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invoke cannot be called directly on a delegate(CS1533)
+
+I get this error when compiling the following code.
+ServiceExceptionEventHandler is a custom delegate type. This code compiles
+fine with MS csc.
+
+
+..snip..
+
+public delegate void ServiceExceptionEventHandler(Exception e);
+
+..snip...
+
+
+/// <summary>
+
+/// Invokes the ModuleException event.
+
+/// </summary>
+
+/// <param name="e"></param>
+
+private void OnServiceException(Exception e)
+
+{
+
+    if (ServiceException != null)
+
+        ServiceException.Invoke(e);
+
+}
+
+/// <summary>
+
+/// Occurs when an Exception is raised within the ModuleHost.
+
+/// </summary>
+
+public event ServiceExceptionEventHandler ServiceException;


More information about the mono-bugs mailing list