[Mono-bugs] [Bug 74241][Nor] Changed - MCS doesn't encode attributes on event when attributes are prefixed with "method:"
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 31 Mar 2005 18:32:59 -0500 (EST)
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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74241
--- shadow/74241 2005-03-31 11:14:47.000000000 -0500
+++ shadow/74241.tmp.28199 2005-03-31 18:32:59.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 74241
Product: Mono: Compilers
Version: 1.1
OS: All
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: C#
AssignedTo: marek.safar@seznam.cz
ReportedBy: sebastien@ximian.com
QAContact: mono-bugs@ximian.com
@@ -88,6 +88,35 @@
Always
Additional Information:
------- Additional Comments From marek.safar@seznam.cz 2005-03-31 11:14 -------
Fixed in SVN
+
+------- Additional Comments From sebastien@ximian.com 2005-03-31 18:32 -------
+Thanks Marek, that worked on classes but not on interfaces. MCS won't
+generate the attributes on an event inside an interface (while this
+works with CSC).
+
+using System;
+using System.Security.Permissions;
+
+interface IInterface {
+
+ [method: SecurityPermission (SecurityAction.LinkDemand,
+ControlDomainPolicy = true)]
+ event EventHandler Event;
+
+}
+
+class Program : IInterface {
+
+ public event EventHandler Event {
+ add {;}
+ remove {;}
+ }
+
+ static void Main ()
+ {
+ }
+}
+