[Mono-bugs] [Bug 71073][Wis] Changed - unfixable warning cs0067 "event not used"

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 22 07:57:36 EST 2006

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 marek.safar at seznam.cz.


--- shadow/71073	2005-05-09 17:09:21.000000000 -0400
+++ shadow/71073.tmp.6798	2006-03-22 07:57:36.000000000 -0500
@@ -68,6 +68,21 @@
 The warning is even useful: it reminds you that you *should*
 use add {} and remove {} to avoid the generation of the
 unnecessary hidden delegate.
+------- Additional Comments From marek.safar at seznam.cz  2006-03-22 07:57 -------
+I prefer to issue a warning. For the following reasons:
+- be consistent with csc (people will complain, we don't report
+warning and csc does)
+- simple workarounds (pragma warning, custom accessors)
+- the warning tells your code is wrong. Why ?
+If you implement an interface and it contains event I expect that an
+event will be working or will throw NotImplemented or NotSupported
+One can argue, but I want just empty implementation but it is so rare
+that previous options cover it.
+Miguel, can you close the bug?

More information about the mono-bugs mailing list