[Mono-bugs] [Bug 50932][Min] New - mcs doesn't generate ComVisibleAttribute for delegates
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Nov 2003 11:30:18 -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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=50932
--- shadow/50932 2003-11-13 11:30:18.000000000 -0500
+++ shadow/50932.tmp.873 2003-11-13 11:30:18.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 50932
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs doesn't generate ComVisibleAttribute for delegates
+
+Compile and run:
+----------------
+using System;
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
+class C
+{
+ [ComVisible(true)]
+ public delegate void dele ();
+
+ static void Main ()
+ {
+ Type t = typeof (C);
+ foreach (object o in t.GetCustomAttributes (false))
+ Console.WriteLine (o.GetType ());
+
+ t = typeof (dele);
+ foreach (object o in t.GetCustomAttributes (false))
+ Console.WriteLine (o.GetType ());
+ }
+}
+---------
+Actual results:
+System.Runtime.InteropServices.ComVisibleAttribute
+
+Expected results:
+System.Runtime.InteropServices.ComVisibleAttribute
+System.Runtime.InteropServices.ComVisibleAttribute