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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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; _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
